python-nbclient/python-nbclient.spec

64 lines
1.6 KiB
RPMSpec
Raw Normal View History

2023-08-09 10:43:33 +08:00
%global pypi_name nbclient
%global _description %{expand:
NBClient, a client library for programmatic notebook execution, is a tool for
running Jupyter Notebooks in different execution contexts. NBClient was spun
out of nbconvert (formerly ExecutePreprocessor). NBClient lets you execute notebooks.
}
Name: python-%{pypi_name}
Version: 0.7.4
Release: 2
Summary: A client library for executing notebooks.
License: BSD-3-Clause
URL: https://github.com/jupyter/nbclient
Source0: %{url}/archive/%{version}/nbclient-%{version}.tar.gz
Patch1: 0001-modify-the-range-of-version-required.patch
BuildArch: noarch
%description
%_description
%package -n python3-%{pypi_name}
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
%_description
%prep
%autosetup -n %{pypi_name}-%{version} -p1
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%pyproject_build
%install
%pyproject_install
%files -n python3-%{pypi_name}
%doc README.md
%license LICENSE
%{python3_sitelib}/nbclient
%{python3_sitelib}/nbclient-*dist-info/
%{_bindir}/jupyter-execute
%changelog
* Wed Aug 9 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.7.4-2
- Fix the package provider missing
* Fri Aug 4 2023 mengzhaoa <mengzhaoa@isoftstone.com> - 0.7.4-1
- Downgrade package python-nbclient to version 0.7.4
* Fri Jul 28 2023 xlhans <xlhans@isoftstone.com> - 0.8.0-1
- Package init