35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# Template file for 'python3-ipython'
|
|
pkgname=python3-ipython
|
|
version=7.9.0
|
|
revision=2
|
|
archs=noarch
|
|
wrksrc="ipython-${version}"
|
|
build_style=python3-module
|
|
pycompile_module="IPython"
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3-pickleshare python3-simplegeneric python3-traitlets
|
|
python3-pexpect python3-prompt_toolkit2 python3-Pygments python3-jedi
|
|
python3-backcall"
|
|
short_desc="Enhanced interactive Python3 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=dfd303b270b7b5232b3d08bd30ec6fd685d8a58cabd54055e3d69d8f029f7280
|
|
|
|
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
|
|
}
|