diff --git a/srcpkgs/python-ipython_ipykernel/template b/srcpkgs/python-ipython_ipykernel/template deleted file mode 100644 index 503eba2c07..0000000000 --- a/srcpkgs/python-ipython_ipykernel/template +++ /dev/null @@ -1,35 +0,0 @@ -# Template file for 'python-ipython_ipykernel' -pkgname=python-ipython_ipykernel -version=4.10.0 -revision=3 -archs=noarch -wrksrc="ipykernel-${version}" -build_style=python-module -hostmakedepends="python-setuptools python3-setuptools python-ipython - python3-ipython python-jupyter_client python3-jupyter_client python-traitlets - python3-traitlets python-tornado python3-tornado" -depends="python-ipython python-traitlets python-jupyter_client python-tornado" -short_desc="IPython kernel for Jupyter (Python2)" -maintainer="Alessio Sergi " -license="BSD-3-Clause" -homepage="https://github.com/ipython/ipykernel" -distfiles="${PYPI_SITE}/i/ipykernel/ipykernel-${version}.tar.gz" -checksum=699103c8e64886e3ec7053f2a6aa83bb90426063526f63a818732ff385202bad - -post_install() { - for v in 2 3; do - vsed -i "s,python,&${v}," ${DESTDIR}/usr/share/jupyter/kernels/python${v}/kernel.json - done - vlicense COPYING.md LICENSE -} - -python3-ipython_ipykernel_package() { - archs=noarch - depends="python3-ipython python3-traitlets python3-jupyter_client python3-tornado" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/lib/python3* - vmove usr/share/jupyter/kernels/python3 - vlicense COPYING.md LICENSE - } -} diff --git a/srcpkgs/python3-ipython_ipykernel b/srcpkgs/python3-ipython_ipykernel deleted file mode 120000 index fd7db802e5..0000000000 --- a/srcpkgs/python3-ipython_ipykernel +++ /dev/null @@ -1 +0,0 @@ -python-ipython_ipykernel \ No newline at end of file diff --git a/srcpkgs/python3-ipython_ipykernel/template b/srcpkgs/python3-ipython_ipykernel/template new file mode 100644 index 0000000000..a7d266b8b3 --- /dev/null +++ b/srcpkgs/python3-ipython_ipykernel/template @@ -0,0 +1,27 @@ +# Template file for 'python3-ipython_ipykernel' +pkgname=python3-ipython_ipykernel +version=4.10.0 +revision=3 +archs=noarch +wrksrc="ipykernel-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools python3-ipython + python3-jupyter_client python3-traitlets python3-tornado" +depends="python3-ipython python3-traitlets python3-jupyter_client python3-tornado" +checkdepends="python3-pytest $depends python3-numpy python3-flaky python3-nose" +short_desc="IPython kernel for Jupyter (Python3)" +maintainer="Alessio Sergi " +license="BSD-3-Clause" +homepage="https://github.com/ipython/ipykernel" +distfiles="${PYPI_SITE}/i/ipykernel/ipykernel-${version}.tar.gz" +checksum=699103c8e64886e3ec7053f2a6aa83bb90426063526f63a818732ff385202bad + +do_check() { + : requires IPython/external/decorators/_decorators of python3-ipython +} + +post_install() { + vsed -i -e "s/python/&3/" \ + ${DESTDIR}/usr/share/jupyter/kernels/python3/kernel.json + vlicense COPYING.md LICENSE +}