void-packages/srcpkgs/python-ipython/template
Alessio Sergi 06251a2dcc python-ipython: update to 5.4.1
Split out python3-ipython since IPython>=6.0 is Python3-only.
IPython 5.x is a LTS release, yet compatible with Python 2.7.
2017-06-06 15:34:54 +02:00

34 lines
1.1 KiB
Bash

# Template file for 'python-ipython'
pkgname=python-ipython
version=5.4.1
revision=1
noarch=yes
wrksrc="ipython-${version}"
build_style=python2-module
hostmakedepends="python-setuptools"
depends="python-pickleshare python-simplegeneric python-traitlets python-pexpect
python-prompt_toolkit python-Pygments python-backports.shutil_get_terminal_size"
pycompile_module="IPython"
short_desc="Enhanced interactive Python2 shell"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://ipython.org/"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/i/ipython/ipython-${version}.tar.gz"
checksum=afaa92343c20cf4296728161521d84f606d8817f963beaf7198e63dfede897fb
alternatives="
ipython:ipython:/usr/bin/ipython2
ipython:ipython.1:/usr/share/man/man1/ipython2.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{,2}.1
vlicense COPYING.rst LICENSE
}