Date: Thursday, November 10, 2022 @ 11:56:28
  Author: arojas
Revision: 1346403

archrelease: copy trunk to community-testing-any

Added:
  python-spyder-kernels/repos/community-testing-any/
  python-spyder-kernels/repos/community-testing-any/PKGBUILD
    (from rev 1346402, python-spyder-kernels/trunk/PKGBUILD)

----------+
 PKGBUILD |   61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

Copied: python-spyder-kernels/repos/community-testing-any/PKGBUILD (from rev 
1346402, python-spyder-kernels/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2022-11-10 11:56:28 UTC (rev 1346403)
@@ -0,0 +1,61 @@
+# Maintainer: Bruno Pagani <[email protected]>
+
+_pkg=spyder-kernels
+pkgname=python-${_pkg}
+pkgver=2.4.0
+pkgrel=1
+pkgdesc="Jupyter Kernels for the Spyder console"
+arch=(any)
+url="https://github.com/spyder-ide/spyder-kernels/";
+license=(MIT)
+makedepends=(python python-setuptools)
+depends=(
+    cython
+    ipython
+    python-cloudpickle
+    python-ipykernel
+    python-jupyter_client
+    python-matplotlib
+    python-pandas
+    python-pyzmq
+    python-wurlitzer
+)
+checkdepends=(
+    python-dask
+    python-distributed
+    python-django
+    python-flaky
+    python-mock
+    python-numpy
+    python-pillow
+    python-pytest
+    python-scipy
+    python-xarray
+)
+# No tests in pypi tarballs
+#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('605181e4c628886b08f99a95caa2a5b3b98087821b9203659b14d60b07710205')
+
+prepare() {
+  cd ${_pkg}-${pkgver}
+  sed -i 's|ipykernel>=6.9.2,<7|ipykernel>=6.9.2|' setup.py
+  sed -i 's|ipython>=7.31.1,<8|ipython>=7.31.1|' setup.py
+  sed -i 's|jupyter_client>=7.3.4,<8|jupyter_client>=7.3.4|' setup.py
+}
+
+build() {
+  cd ${_pkg}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pkg}-${pkgver}
+  pytest -vv --color=yes spyder_kernels
+}
+
+package() {
+  cd ${_pkg}-${pkgver}
+  python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 
--skip-build
+  install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}

Reply via email to