# Do stuff that require Internet connection. Useful for debugging, useless in Koji. # invoke mock with: --enable-network --with internet %bcond_with internet Summary: The JupyterLab notebook server extension Name: python-jupyterlab Version: 1.1.4 Release: 1%{?dist} License: BSD URL: http://jupyter.org Source0: https://files.pythonhosted.org/packages/source/j/jupyterlab/jupyterlab-%{version}.tar.gz Source1: jupyterlab.desktop Source2: jupyterlab.appdata.xml BuildArch: noarch BuildRequires: appstream BuildRequires: desktop-file-utils BuildRequires: python3-devel BuildRequires: python3dist(ipython-genutils) BuildRequires: python3dist(jupyterlab-launcher) BuildRequires: python3dist(mock) BuildRequires: python3dist(notebook) >= 4.3.1 BuildRequires: python3dist(pytest) # BuildRequires: python3dist(pytest-check-links) # not available and doesn't work without interwebz # BuildRequires: python3dist(sphinx-copybutton) missing BuildRequires: python3dist(recommonmark) BuildRequires: python3dist(requests) BuildRequires: python3dist(selenium) BuildRequires: python3dist(setuptools) BuildRequires: python3dist(sphinx) BuildRequires: python3dist(sphinx-rtd-theme) BuildRequires: %{_bindir}/node BuildRequires: %{_bindir}/npm %{?python_enable_dependency_generator} %global _description\ JupyterLab is a web-based interactive development environment for\ Jupyter notebooks, code, and data. JupyterLab is flexible: configure\ and arrange the user interface to support a wide range of workflows in\ data science, scientific computing, and machine learning. JupyterLab\ is extensible and modular: write plugins that add new components and\ integrate with existing ones. %description %{_description} %package -n python3-jupyterlab Summary: %{summary} %{?python_provide:%python_provide python3-jupyterlab} %description -n python3-jupyterlab %{_description} %prep %autosetup -n jupyterlab-%{version} %build %if %{without internet} #global py_setup_args --skip-npm %endif %py3_build # no docs in tarball yet # generate html docs # sphinx-build-3 docs/source html # remove the sphinx-build leftovers # rm -rf html/.{doctrees,buildinfo} %install %py3_install install -d %{buildroot}%{_datadir}/jupyter/lab mv %{buildroot}%{python3_sitelib}/jupyterlab/{static,schemas,themes} \ %{buildroot}%{_datadir}/jupyter/lab #mv %{buildroot}%{python3_sitelib}/jupyterlab/*.js %{buildroot}%{_datadir}/jupyter/lab install -D -p -m0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/jupyterlab.desktop install -D -p -m0644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/jupyterlab.appdata.xml install -D -p -m0644 docs/source/_static/jupyter_logo.svg %{buildroot}%{_datadir}/pixmaps/jupyter_logo.svg %check desktop-file-validate %{buildroot}%{_datadir}/applications/jupyterlab.desktop appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/jupyterlab.appdata.xml %{__python3} -m pytest -vv || : %files -n python3-jupyterlab %license LICENSE %doc README.md %{_bindir}/jlpm %{_bindir}/jupyter-lab %{_bindir}/jupyter-labextension %{_bindir}/jupyter-labhub %{_datadir}/appdata/jupyterlab.appdata.xml %{_datadir}/applications/jupyterlab.desktop %{_datadir}/pixmaps/jupyter_logo.svg %dir %{_datadir}/jupyter/ %{_datadir}/jupyter/lab %{python3_sitelib}/jupyterlab %{python3_sitelib}/jupyterlab-%{version}-py?.?.egg-info %changelog * Wed Oct 02 2019 Terje Rosten - 1.1.4-1 - 1.1.4 - Add description - Less strict jupyterlab-launcher reqs - Minor clean up - Move artifacts to /usr/share/jupyter - Add desktop and appdata files, ship icon * Tue Feb 20 2018 Miro HronĨok - 0.31.8-1 - Initial package