upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / python-spyder-kernels / repos / community-any / PKGBUILD
blobe478a8123c65a2ac554a23c09e7521e7e7e44d6d
1 # Maintainer: Bruno Pagani <archange@archlinux.org>
3 _pkg=spyder-kernels
4 pkgname=python-${_pkg}
5 pkgver=2.4.3
6 pkgrel=2
7 pkgdesc="Jupyter Kernels for the Spyder console"
8 arch=(any)
9 url="https://github.com/spyder-ide/spyder-kernels/"
10 license=(MIT)
11 makedepends=(python python-setuptools)
12 depends=(
13     cython
14     ipython
15     python-cloudpickle
16     python-ipykernel
17     python-jupyter_client
18     python-matplotlib
19     python-pandas
20     python-pyzmq
21     python-wurlitzer
23 checkdepends=(
24     python-dask
25     python-distributed
26     python-django
27     python-flaky
28     python-numpy
29     python-pillow
30     python-pytest
31     python-scipy
32     python-xarray
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')
39 prepare() {
40   cd ${_pkg}-${pkgver}
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
46 build() {
47   cd ${_pkg}-${pkgver}
48   python setup.py build
51 check() {
52   cd ${_pkg}-${pkgver}
53   pytest -vv --color=yes spyder_kernels
56 package() {
57   cd ${_pkg}-${pkgver}
58   python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
59   install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/