From dc04dae2fc0259335f17804cf8dd07b5161b63ce Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Fri, 14 Apr 2017 16:07:47 +0200 Subject: [PATCH] python-ipython_ipykernel: update to 4.6.1 --- srcpkgs/python-ipython_ipykernel/template | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/srcpkgs/python-ipython_ipykernel/template b/srcpkgs/python-ipython_ipykernel/template index 3799a8d7769..f6064826b62 100644 --- a/srcpkgs/python-ipython_ipykernel/template +++ b/srcpkgs/python-ipython_ipykernel/template @@ -1,32 +1,38 @@ # Template file for 'python-ipython_ipykernel' pkgname=python-ipython_ipykernel -version=4.5.2 +version=4.6.1 revision=1 noarch=yes wrksrc="ipykernel-${version}" build_style=python-module -hostmakedepends="python-setuptools python3-setuptools" -depends="python-ipython python-traitlets python-jupyter_client" -pycompile_module="ipykernel" +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" +pycompile_module="ipykernel ipykernel_launcher.py" short_desc="IPython kernel for Jupyter (Python2)" maintainer="Alessio Sergi " homepage="https://github.com/ipython/ipykernel" license="3-clause-BSD" distfiles="${PYPI_SITE}/i/ipykernel/ipykernel-${version}.tar.gz" -checksum=5a54f25f0e6c8ee74c362c23f9a95e10e74c6b7f5ef42059c861ff6f26d89462 +checksum=2e1825aca4e2585b5adb7953ea16e53f53a62159ed49952a564b1e23507205db post_install() { + for v in 2 3; do + sed -i "s,python,&${v}," ${DESTDIR}/usr/share/jupyter/kernels/python${v}/kernel.json + done vlicense COPYING.md LICENSE } python3-ipython_ipykernel_package() { noarch=yes - depends="python3-ipython python3-traitlets python3-jupyter_client" + depends="python3-ipython python3-traitlets python3-jupyter_client python3-tornado" replaces="python3.4-ipython_ipykernel>=0" - pycompile_module="ipykernel" + pycompile_module="ipykernel ipykernel_launcher.py" short_desc="${short_desc/Python2/Python3}" pkg_install() { vmove usr/lib/python3* + vmove usr/share/jupyter/kernels/python3 vlicense COPYING.md LICENSE } }