diff --git a/srcpkgs/python-jupyter_notebook/template b/srcpkgs/python-jupyter_notebook/template deleted file mode 100644 index 4f6de0f642d..00000000000 --- a/srcpkgs/python-jupyter_notebook/template +++ /dev/null @@ -1,55 +0,0 @@ -# Template file for 'python-jupyter_notebook' -pkgname=python-jupyter_notebook -version=5.7.0 -revision=2 -archs=noarch -wrksrc="notebook-${version}" -build_style=python-module -pycompile_module="notebook" -hostmakedepends="python-setuptools python3-setuptools" -depends="python-Jinja2 python-terminado python-tornado - python-ipython_genutils python-traitlets python-jupyter_core - python-jupyter_client python-jupyter_nbformat python-jupyter_nbconvert - python-ipython_ipykernel python-send2trash python-prometheus_client - python-ipaddress mathjax" -short_desc="Jupyter interactive notebook (Python2)" -maintainer="Alessio Sergi " -homepage="https://github.com/jupyter/notebook" -license="BSD-3-Clause" -distfiles="${PYPI_SITE}/n/notebook/notebook-${version}.tar.gz" -checksum=b85e4de3d54cf4f14fe1d0515a980ccb49ddd4cdd21250cc0d4fb6374d50b1a7 - -alternatives=" - jupyter-notebook:jupyter-notebook:/usr/bin/jupyter-notebook2 - jupyter-notebook:jupyter-nbextension:/usr/bin/jupyter-nbextension2 - jupyter-notebook:jupyter-serverextension:/usr/bin/jupyter-serverextension2 - jupyter-notebook:jupyter-bundlerextension:/usr/bin/jupyter-bundlerextension2" - -post_install() { - vlicense COPYING.md LICENSE - # use system mathjax - for py_sitelib in $py2_sitelib $py3_sitelib; do - rm -rf ${DESTDIR}/${py_sitelib}/notebook/static/components/MathJax - ln -sf /usr/share/mathjax ${DESTDIR}/${py_sitelib}/notebook/static/components/MathJax - done -} - -python3-jupyter_notebook_package() { - alternatives=" - jupyter-notebook:jupyter-notebook:/usr/bin/jupyter-notebook3 - jupyter-notebook:jupyter-nbextension:/usr/bin/jupyter-nbextension3 - jupyter-notebook:jupyter-serverextension:/usr/bin/jupyter-serverextension3 - jupyter-notebook:jupyter-bundlerextension:/usr/bin/jupyter-bundlerextension3" - archs=noarch - depends="python3-Jinja2 python3-terminado python3-tornado - python3-ipython_genutils python3-traitlets python3-jupyter_core - python3-jupyter_client python3-jupyter_nbformat python3-jupyter_nbconvert - python3-ipython_ipykernel python3-send2trash python3-prometheus_client mathjax" - pycompile_module="notebook" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/bin/*3 - vmove usr/lib/python3* - vlicense COPYING.md LICENSE - } -} diff --git a/srcpkgs/python3-jupyter_notebook b/srcpkgs/python3-jupyter_notebook deleted file mode 120000 index 8c3e828e727..00000000000 --- a/srcpkgs/python3-jupyter_notebook +++ /dev/null @@ -1 +0,0 @@ -python-jupyter_notebook \ No newline at end of file diff --git a/srcpkgs/python3-jupyter_notebook/template b/srcpkgs/python3-jupyter_notebook/template new file mode 100644 index 00000000000..d35ec7da3c3 --- /dev/null +++ b/srcpkgs/python3-jupyter_notebook/template @@ -0,0 +1,32 @@ +# Template file for 'python3-jupyter_notebook' +pkgname=python3-jupyter_notebook +version=5.7.0 +revision=3 +archs=noarch +wrksrc="notebook-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-Jinja2 python3-terminado python3-tornado + python3-ipython_genutils python3-traitlets python3-jupyter_core + python3-jupyter_client python3-jupyter_nbformat python3-jupyter_nbconvert + python3-ipython_ipykernel python3-send2trash python3-prometheus_client + mathjax" +checkdepends="$depends" +short_desc="Jupyter interactive notebook" +maintainer="Alessio Sergi " +license="BSD-3-Clause" +homepage="https://jupyter.org/" +distfiles="${PYPI_SITE}/n/notebook/notebook-${version}.tar.gz" +checksum=b85e4de3d54cf4f14fe1d0515a980ccb49ddd4cdd21250cc0d4fb6374d50b1a7 +conflicts="python-jupyter_notebook<=5.7.0_2" + +post_install() { + vlicense COPYING.md LICENSE + # use system mathjax + rm -rf ${DESTDIR}/${py3_sitelib}/notebook/static/components/MathJax + ln -sf /usr/share/mathjax ${DESTDIR}/${py3_sitelib}/notebook/static/components/MathJax +} + +do_check() { + : no selenium +}