1
0
python-jupyter-server/python-jupyter-server.spec

127 lines
4.3 KiB
RPMSpec

#
# spec file for package python-jupyter-server
#
# Copyright (c) 2019 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-%{**}}
Name: python-jupyter-server
Version: 0.0.4
Release: 0
License: BSD-3-Clause
Summary: The Jupyter Server
Url: https://github.com/jupyter/jupyter_server
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/j/jupyter-server/jupyter_server-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module Send2Trash}
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module ipykernel}
BuildRequires: %{python_module ipython_genutils}
BuildRequires: %{python_module jupyter_client >= 5.2.0}
BuildRequires: %{python_module jupyter_core >= 4.4.0}
BuildRequires: %{python_module nbconvert}
BuildRequires: %{python_module nbformat}
BuildRequires: %{python_module nbval}
BuildRequires: %{python_module nose-exclude}
BuildRequires: %{python_module nose_warnings_filters}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module prometheus_client}
BuildRequires: %{python_module pyzmq >= 17}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module selenium}
BuildRequires: %{python_module terminado >= 0.8.1}
BuildRequires: %{python_module tornado >= 4}
BuildRequires: %{python_module traitlets >= 4.2.1}
BuildRequires: python-ipaddress
BuildRequires: python-mock
# /SECTION
Requires: python-Jinja2
Requires: python-Send2Trash
Requires: python-ipykernel
Requires: python-ipython_genutils
Requires: python-jupyter_client >= 5.2.0
Requires: python-jupyter_core >= 4.4.0
Requires: python-nbconvert
Requires: python-nbformat
Requires: python-prometheus_client
Requires: python-pyzmq >= 17
Requires: python-terminado >= 0.8.1
Requires: python-tornado >= 4
Requires: python-traitlets >= 4.2.1
Requires: jupyter-jupyter-server = %{version}
%ifpython2
Requires: python-ipaddress
%endif
BuildArch: noarch
%python_subpackages
%description
The Jupyter Server is a web application that allows you to create and
share documents that contain live code, equations, visualizations, and
explanatory text. The Notebook has support for multiple programming
languages, sharing, and interactive widgets.
This package provides the python interface.
%package -n jupyter-jupyter-server
Summary: The Jupyter Server
Requires: jupyter-ipykernel
Requires: jupyter-jupyter_client >= 5.2.0
Requires: jupyter-jupyter_core >= 4.4.0
Requires: jupyter-nbconvert
Requires: jupyter-nbformat
Requires: python3-jupyter-server = %{version}
%description -n jupyter-jupyter-server
The Jupyter Server is a web application that allows you to create and
share documents that contain live code, equations, visualizations, and
explanatory text. The Notebook has support for multiple programming
languages, sharing, and interactive widgets.
This package provides the jupyter components.
%prep
%setup -q -n jupyter_server-%{version}
rm jupyter_server/bundler/tests/resources/subdir/subsubdir/.gitkeep
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
%python_expand nosetests-%{$python_bin_suffix} -v jupyter_server
%files %{python_files}
%doc README.md
%license COPYING.md
%{python_sitelib}/*
%files -n jupyter-jupyter-server
%license COPYING.md
%{_bindir}/jupyter-server
%{_bindir}/jupyter-extension
%{_bindir}/jupyter-bundlerextension
%changelog