diff --git a/srcpkgs/python3-ipython/template b/srcpkgs/python3-ipython/template new file mode 100644 index 0000000000..95b819439a --- /dev/null +++ b/srcpkgs/python3-ipython/template @@ -0,0 +1,42 @@ +# Template file for 'python3-ipython' +pkgname=python3-ipython +version=6.1.0 +revision=1 +noarch=yes +wrksrc="ipython-${version}" +build_style=python3-module +pycompile_module="IPython" +replaces="python3.4-ipython>=0" +hostmakedepends="python3-setuptools" +depends="python3-pickleshare python3-simplegeneric python3-traitlets + python3-pexpect python3-prompt_toolkit python3-Pygments python3-jedi" +short_desc="Enhanced interactive Python3 shell" +maintainer="Alessio Sergi " +homepage="https://ipython.org/" +license="3-clause-BSD" +distfiles="${PYPI_SITE}/i/ipython/ipython-${version}.tar.gz" +checksum=5c53e8ee4d4bec27879982b9f3b4aa2d6e3cfd7b26782d250fa117f85bb29814 + +alternatives=" + ipython:ipython:/usr/bin/ipython3 + ipython:ipython.1:/usr/share/man/man1/ipython3.1" + +post_install() { + # use decorators of numpy + rm -f ${DESTDIR}/usr/lib/python*/site-packages/IPython/external/decorators/_decorators.py + # remove iptest + rm -f ${DESTDIR}/usr/bin/iptest* + # remove ipython for alternatives + rm -f ${DESTDIR}/usr/bin/ipython + # create versioned man pages + mv ${DESTDIR}/usr/share/man/man1/ipython{,3}.1 + + vlicense COPYING.rst LICENSE +} + +python3.4-ipython_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-ipython>=${version}_${revision}" +} diff --git a/srcpkgs/python3.4-ipython b/srcpkgs/python3.4-ipython new file mode 120000 index 0000000000..bdb9d29db7 --- /dev/null +++ b/srcpkgs/python3.4-ipython @@ -0,0 +1 @@ +python3-ipython \ No newline at end of file