From 5f1c170f05263ff61e5216374a6b7dd0ee0408ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 31 Mar 2020 12:14:48 +0700 Subject: [PATCH] python-jupyter_nbformat: drop python 2 --- srcpkgs/python-jupyter_nbformat/template | 35 ----------------------- srcpkgs/python3-jupyter_nbformat | 1 - srcpkgs/python3-jupyter_nbformat/template | 26 +++++++++++++++++ 3 files changed, 26 insertions(+), 36 deletions(-) delete mode 100644 srcpkgs/python-jupyter_nbformat/template delete mode 120000 srcpkgs/python3-jupyter_nbformat create mode 100644 srcpkgs/python3-jupyter_nbformat/template diff --git a/srcpkgs/python-jupyter_nbformat/template b/srcpkgs/python-jupyter_nbformat/template deleted file mode 100644 index e2addc8866f..00000000000 --- a/srcpkgs/python-jupyter_nbformat/template +++ /dev/null @@ -1,35 +0,0 @@ -# Template file for 'python-jupyter_nbformat' -pkgname=python-jupyter_nbformat -version=4.4.0 -revision=3 -archs=noarch -wrksrc="nbformat-${version}" -build_style=python-module -hostmakedepends="python-setuptools python3-setuptools" -depends="python-jsonschema python-ipython_genutils python-traitlets python-jupyter_core" -pycompile_module="nbformat" -short_desc="The Jupyter notebook format (Python2)" -maintainer="Alessio Sergi " -homepage="https://github.com/jupyter/nbformat" -license="3-clause-BSD" -distfiles="${PYPI_SITE}/n/nbformat/nbformat-${version}.tar.gz" -checksum=f7494ef0df60766b7cabe0a3651556345a963b74dbc16bc7c18479041170d402 -alternatives="jupyter-nbformat:jupyter-trust:/usr/bin/jupyter-trust2" - -post_install() { - vlicense COPYING.md LICENSE -} - -python3-jupyter_nbformat_package() { - archs=noarch - depends="python3-jsonschema python3-ipython_genutils python3-traitlets - python3-jupyter_core" - pycompile_module="nbformat" - short_desc="${short_desc/Python2/Python3}" - alternatives="jupyter-nbformat:jupyter-trust:/usr/bin/jupyter-trust3" - pkg_install() { - vmove usr/bin/jupyter-trust3 - vmove usr/lib/python3* - vlicense COPYING.md LICENSE - } -} diff --git a/srcpkgs/python3-jupyter_nbformat b/srcpkgs/python3-jupyter_nbformat deleted file mode 120000 index fcc839dfa33..00000000000 --- a/srcpkgs/python3-jupyter_nbformat +++ /dev/null @@ -1 +0,0 @@ -python-jupyter_nbformat \ No newline at end of file diff --git a/srcpkgs/python3-jupyter_nbformat/template b/srcpkgs/python3-jupyter_nbformat/template new file mode 100644 index 00000000000..6e9966c3793 --- /dev/null +++ b/srcpkgs/python3-jupyter_nbformat/template @@ -0,0 +1,26 @@ +# Template file for 'python3-jupyter_nbformat' +pkgname=python3-jupyter_nbformat +version=4.4.0 +revision=4 +archs=noarch +wrksrc="nbformat-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-jsonschema python3-ipython_genutils python3-traitlets + python3-jupyter_core" +checkdepends="$depends python3-pytest python3-testpath" +short_desc="Jupyter notebook format" +maintainer="Alessio Sergi " +license="BSD-3-Clause" +homepage="https://github.com/jupyter/nbformat" +distfiles="${PYPI_SITE}/n/nbformat/nbformat-${version}.tar.gz" +checksum=f7494ef0df60766b7cabe0a3651556345a963b74dbc16bc7c18479041170d402 +conflicts="python-jupyter_nbformat<=4.4.0_3" + +do_check() { + pytest +} + +post_install() { + vlicense COPYING.md LICENSE +}