[arch-commits] Commit in python-spyder-kernels/repos (2 files)
Bruno Pagani
archange at gemini.archlinux.org
Sat Apr 2 20:57:44 UTC 2022
Date: Saturday, April 2, 2022 @ 20:57:43
Author: archange
Revision: 1180875
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 1180874, python-spyder-kernels/trunk/PKGBUILD)
----------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
Copied: python-spyder-kernels/repos/community-testing-any/PKGBUILD (from rev 1180874, python-spyder-kernels/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2022-04-02 20:57:43 UTC (rev 1180875)
@@ -0,0 +1,60 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=spyder-kernels
+pkgname=python-${_pkg}
+pkgver=2.3.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=(
+ ipython
+ python-cloudpickle
+ python-ipykernel
+ python-jupyter_client
+ python-pyzmq
+ python-wurlitzer
+)
+checkdepends=(
+ cython
+ python-dask
+ python-distributed
+ python-flaky
+ python-matplotlib
+ python-mock
+ python-numpy
+ python-pandas
+ 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=('3fbf18088fdd3c4d3ca1923790b2537d08f52bb7e616a15a544534ef8e22d05f')
+
+prepare() {
+ cd ${_pkg}-${pkgver}
+ sed -i 's|ipython>=7.31.1,<8|ipython>=7.31.1|' setup.py
+}
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkg}-${pkgver}
+ # https://github.com/ipython/ipykernel/issues/901
+ # https://github.com/spyder-ide/spyder-kernels/issues/380
+ pytest -vv --color=yes spyder_kernels || echo "Tests failed"
+}
+
+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}/
+}
More information about the arch-commits
mailing list