File python2-jupyter_ipykernel.spec of Package python2-jupyter_ipykernel
#
# spec file for package python2-jupyter_ipykernel
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python3 1
%define oldpython python
Name: python2-jupyter_ipykernel
Version: 4.10.0
Release: 0
Summary: IPython Kernel for Jupyter
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://github.com/ipython/ipykernel
Source0: https://files.pythonhosted.org/packages/py2/i/ipykernel/ipykernel-%{version}-py2-none-any.whl
BuildRequires: %{python_module certifi}
BuildRequires: %{python_module jupyter_client}
BuildRequires: %{python_module jupyter_ipython >= 4.0.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module tornado >= 4.0}
BuildRequires: %{python_module traitlets >= 4.1.0}
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: python-rpm-macros
BuildRequires: unzip
# SECTION test requirements
BuildRequires: %{python_module jupyter_client}
BuildRequires: %{python_module jupyter_ipython >= 4.0.0}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module nose_warnings_filters}
BuildRequires: %{python_module tornado >= 4.0}
BuildRequires: %{python_module traitlets >= 4.1.0}
BuildRequires: python-mock
BuildRequires: python-typing
# /SECTION
Requires: python-certifi
Requires: python-jupyter_client
Requires: python-jupyter_ipython >= 4.0.0
Requires: python-tornado >= 4.0
Requires: python-traitlets >= 4.1.0
Requires: python-typing
BuildArch: noarch
Provides: %{oldpython}-jupyter_ipykernel = %{version}
Obsoletes: %{oldpython}-jupyter_ipykernel < %{version}
%python_subpackages
%description
This package provides the IPython kernel for Jupyter.
%prep
%setup -T -c -n %{name}-%{version}
%build
# Not needed
%install
%python_expand pip%{$python_bin_suffix} install \
--root %{buildroot} \
--prefix %{_prefix} \
--compile \
%{SOURCE0}
%check
export PYTHONDONTWRITEBYTECODE=1
%{python_expand export PYTHONPATH=%{buildroot}%{python_sitelib}
nosetests-%{$python_bin_suffix}
}
%files %{python_files}
%{python_sitelib}/ipykernel-%{version}.dist-info/
%license %{python_sitelib}/ipykernel-%{version}.dist-info/LICENSE.txt
%{python_sitelib}/ipykernel_launcher.py*
%{python_sitelib}/ipykernel/
%{_datadir}/jupyter/kernels/python2/
%changelog