1 # Maintainer: Bruno Pagani <archange@archlinux.org>
7 pkgdesc="Jupyter Kernels for the Spyder console"
9 url="https://github.com/spyder-ide/spyder-kernels/"
11 makedepends=(python python-setuptools)
34 # No tests in pypi tarballs
35 #source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
36 source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
37 sha256sums=('f9b4a7eeca832e5548d127938b6b3c74bd9bea923db0b2d9bd7670318b92ece1')
41 sed -i 's|ipykernel>=6.16.1,<7|ipykernel>=6.16.1|' setup.py
42 sed -i 's|ipython>=7.31.1,<9|ipython>=7.31.1|' setup.py
43 sed -i 's|jupyter-client>=7.4.9,<8|jupyter-client>=7.4.9|' setup.py
53 pytest -vv --color=yes spyder_kernels
58 python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
59 install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/