75 lines
2.3 KiB
RPMSpec
75 lines
2.3 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
%global pypi_name nbconvert
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 7.6.0
|
|
Release: 1
|
|
Summary: Converting Jupyter Notebooks
|
|
|
|
License: BSD-3-Clause
|
|
URL: https://pypi.org/project/nbconvert/
|
|
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
Patch: 0001-fix-mistune-version-to-adapt-python-m2r.patch
|
|
|
|
# Base Requires
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-hatchling
|
|
BuildRequires: python3-beautifulsoup4
|
|
BuildRequires: python3-defusedxml
|
|
BuildRequires: python3-importlib-metadata
|
|
BuildRequires: python3-jinja2
|
|
BuildRequires: python3-markupsafe
|
|
BuildRequires: python3-packaging
|
|
BuildRequires: python3-pandocfilters
|
|
BuildRequires: python3-traitlets
|
|
BuildRequires: python3-mistune
|
|
|
|
%description
|
|
The nbconvert tool, jupyter nbconvert, converts notebooks to various other
|
|
formats via Jinja templates. The nbconvert tool allows you to convert an
|
|
.ipynb notebook file into various static formats including HTML, LaTeX,
|
|
PDF, Reveal JS, Markdown (md), ReStructured Text (rst) and executable script.
|
|
|
|
%package -n python3-%{pypi_name}
|
|
Summary: Converting Jupyter Notebooks
|
|
|
|
%description -n python3-%{pypi_name}
|
|
The nbconvert tool, jupyter nbconvert, converts notebooks to various other
|
|
formats via Jinja templates. The nbconvert tool allows you to convert an
|
|
.ipynb notebook file into various static formats including HTML, LaTeX,
|
|
PDF, Reveal JS, Markdown (md), ReStructured Text (rst) and executable script.
|
|
|
|
%package -n python-%{pypi_name}-doc
|
|
Summary: Documentation for nbconvert
|
|
%description -n python-%{pypi_name}-doc
|
|
Documentation for nbconvert
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
rm -rf %{pypi_name}.egg-info
|
|
echo "nbsphinx_allow_errors = True" >> docs/source/conf.py
|
|
# Remove coverage testing
|
|
sed -i '/"pytest-cov",/d' pyproject.toml
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install
|
|
|
|
%files -n python3-%{pypi_name}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{_bindir}/jupyter-dejavu
|
|
%{_bindir}/jupyter-nbconvert
|
|
%{python3_sitelib}/nbconvert-*.dist-info/
|
|
%{python3_sitelib}/nbconvert/
|
|
%{_datadir}/jupyter/%{pypi_name}/templates/
|
|
|
|
%changelog
|
|
* Thu Jul 13 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 7.6.0-1
|
|
- Package init
|