2021-04-22 05:40:10 +00:00

49 lines
1.3 KiB
Plaintext

# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=ipython
pkgver=7.22.0
pkgrel=0
pkgdesc="A rich toolkit to help you make the most of using Python interactively"
options="!check" # Too many tests fail
url="https://ipython.org/"
arch="noarch"
license="BSD-3-Clause"
depends="
py3-traitlets
py3-pexpect
py3-prompt_toolkit<3.1.0
py3-pygments
py3-pickleshare
py3-decorator
py3-backcall
py3-simplegeneric
py3-setuptools
"
checkdepends="py3-pathlib2 py3-pytest py3-nose py3-matplotlib"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ipython/ipython/archive/$pkgver.tar.gz"
build() {
python3 setup.py build
}
check() {
# Requires unpackaged 'testpath'
rm -f IPython/core/tests/test_paths.py
rm -f IPython/core/tests/test_completer.py
# Requires unpackaged 'nbformat'
rm -f IPython/core/tests/test_run.py
py.test-3 \
--deselect=IPython/terminal/tests/test_help.py::test_trust_help \
--deselect=IPython/core/tests/test_display.py::test_set_matplotlib_formats_kwargs
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="0c6922e299b5abcb3b32d40cbb1a1660f3a0d662a4dc1bcaee7e8875c2a89a7d6942341dbeabbae72a3479cae2a198d4ccd16f7c0ba6bc1475479f3d9ed62a32 ipython-7.22.0.tar.gz"