13fe38f
%global pypi_name spyder-kernels
13fe38f
13fe38f
Name:           python-%{pypi_name}
2f93bdc
Version:        2.3.0
e821b9d
Release:        %autorelease
c4b3334
Epoch:          1
13fe38f
Summary:        Jupyter kernels for the Spyder console
13fe38f
13fe38f
License:        MIT
13fe38f
URL:            https://github.com/spyder-ide/spyder-kernels
bc705e6
Source0:        %pypi_source
13fe38f
BuildArch:      noarch
13fe38f
13fe38f
BuildRequires:  python3-devel
13fe38f
BuildRequires:  python3dist(cloudpickle)
13fe38f
BuildRequires:  python3dist(ipykernel)
13fe38f
BuildRequires:  python3dist(setuptools)
8178bb8
BuildRequires:  python3dist(wurlitzer)
13fe38f
13fe38f
# for tests
13fe38f
# python3
bc705e6
BuildRequires:  python3dist(cython)
bc705e6
BuildRequires:  python3dist(flaky)
bc705e6
BuildRequires:  python3dist(jupyter-client)
bc705e6
BuildRequires:  python3dist(matplotlib)
bc705e6
BuildRequires:  python3dist(mock)
bc705e6
BuildRequires:  python3dist(numpy)
13fe38f
BuildRequires:  python3dist(pandas)
13fe38f
BuildRequires:  python3dist(pytest)
bc705e6
BuildRequires:  python3dist(pytest-cov)
bc705e6
BuildRequires:  python3dist(pyzmq)
bc705e6
BuildRequires:  python3dist(scipy)
bc705e6
BuildRequires:  python3dist(xarray)
13fe38f
13fe38f
%description
13fe38f
This package provides jupyter kernels used by spyder on its IPython console.
13fe38f
13fe38f
%package -n     python3-%{pypi_name}
13fe38f
Summary:        %{summary}
13fe38f
%{?python_provide:%python_provide python3-%{pypi_name}}
13fe38f
13fe38f
Requires:       python3dist(cloudpickle)
13fe38f
Requires:       python3dist(ipykernel)
bc705e6
Requires:       python3dist(jupyter-client)
bc705e6
Requires:       python3dist(pyzmq)
8178bb8
Requires:       python3dist(wurlitzer)
13fe38f
13fe38f
%description -n python3-%{pypi_name}
13fe38f
This package provides python3 version of jupyter kernels used by spyder on its
13fe38f
 IPython console.
13fe38f
13fe38f
13fe38f
%prep
13fe38f
%autosetup -n %{pypi_name}-%{version}
e821b9d
# spyder-kernel 2.2.1 - relax ipython version
e821b9d
sed -i 's|,<8||' setup.py
e821b9d
13fe38f
rm -rf %{pypi_name}.egg-info
13fe38f
13fe38f
%build
13fe38f
%py3_build
13fe38f
13fe38f
%install
13fe38f
%py3_install
13fe38f
13fe38f
%check
bc705e6
# tests not present in pypi source
bc705e6
#export PYTHONPATH={buildroot}{python3_sitelib} pytest-3
13fe38f
13fe38f
%files -n python3-%{pypi_name}
8178bb8
%license LICENSE.txt
13fe38f
%doc README.md
13fe38f
%{python3_sitelib}/spyder_kernels
508f7b4
%{python3_sitelib}/spyder_kernels-%{version}-py%{python3_version}.egg-info
13fe38f
13fe38f
%changelog
e821b9d
%autochangelog