void-packages/srcpkgs/python-ipython/template

35 lines
1.1 KiB
Bash

# Template file for 'python-ipython'
pkgname=python-ipython
version=5.8.0
revision=2
archs=noarch
wrksrc="ipython-${version}"
build_style=python2-module
pycompile_module="IPython"
hostmakedepends="python-setuptools"
depends="python-pickleshare python-simplegeneric python-traitlets python-pexpect
python-prompt_toolkit1 python-Pygments python-backports.shutil_get_terminal_size"
short_desc="Enhanced interactive Python2 shell"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-3-Clause"
homepage="https://ipython.org/"
distfiles="${PYPI_SITE}/i/ipython/ipython-${version}.tar.gz"
checksum=4bac649857611baaaf76bc82c173aa542f7486446c335fe1a6c05d0d491c8906
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
}