diff --git a/nbformat-5.9.0.tar.gz b/nbformat-5.9.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..29dd9e2a61e8bf36c7d840ec63a7e2a43f7b534d Binary files /dev/null and b/nbformat-5.9.0.tar.gz differ diff --git a/python-nbformat.spec b/python-nbformat.spec new file mode 100644 index 0000000000000000000000000000000000000000..831a3bdf517796329f95c147fc3c81d01d22dd0b --- /dev/null +++ b/python-nbformat.spec @@ -0,0 +1,80 @@ +%bcond_with tests + +%global _empty_manifest_terminate_build 0 +%global pypi_name nbformat + +%global common_description %{expand: +This package contains the base implementation of the Jupyter Notebook format, +and Python APIs for working with notebooks.} + +Name: python-%{pypi_name} +Version: 5.9.0 +Release: 1 +Summary: The Jupyter Notebook format. +License: BSD-3-Clause +URL: https://github.com/jupyter/nbformat +Source0: %{pypi_source %{pypi_name}} + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-hatch-nodejs-version +BuildRequires: python3-fastjsonschema +BuildRequires: python3-jsonschema +BuildRequires: python3-jupyter-core +BuildRequires: python3-traitlets + +%if %{with tests} +BuildRequires: python3-pytest +BuildRequires: python3-testpath +BuildRequires: python3-pre-commit +BuildRequires: python3-pep440 +%endif + +%description +%{common_description} + +%package -n python3-%{pypi_name} +Summary: %{summary} + +%description -n python3-%{pypi_name} +%{common_description} + +%package help +Summary: %{name} documentation + +%description help +Documentation for %{name} + +%prep +%autosetup -p1 -n %{pypi_name}-%{version} + +%build +%pyproject_build + +%install +%pyproject_install + +%if %{with tests} +%check +%pytest +%endif + +%files -n python3-%{pypi_name} +%doc CHANGELOG.md README.md +%license LICENSE +%{_bindir}/jupyter-trust +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-*.dist-info/ + +%files help +%doc docs +%license LICENSE + +%changelog +* Mon Jul 10 2023 Dongxing Wang - 5.9.0-1 +- Initial package.