[arch-commits] Commit in jupyter-nbclient/trunk (PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Sun Apr 3 09:15:10 UTC 2022


    Date: Sunday, April 3, 2022 @ 09:15:10
  Author: arojas
Revision: 1180949

Fix dependencies, run tests

Modified:
  jupyter-nbclient/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-03 09:04:47 UTC (rev 1180948)
+++ PKGBUILD	2022-04-03 09:15:10 UTC (rev 1180949)
@@ -2,15 +2,16 @@
 
 pkgname=jupyter-nbclient
 pkgver=0.5.13
-pkgrel=1
+pkgrel=2
 pkgdesc="A tool for running Jupyter Notebooks in different execution contexts."
 arch=('any')
 url="https://github.com/jupyter/nbclient"
 license=('BSD')
-depends=('python-nest-asyncio' 'python-traitlets' 'python-async_generator')
-makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
+depends=('python-nest-asyncio' 'python-traitlets' 'python-async_generator' 'python-jupyter_client' 'jupyter-nbformat')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel' 'jupyter-nbconvert')
+checkdepends=('python-pytest-asyncio' 'python-xmltodict')
 source=("https://github.com/jupyter/nbclient/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-md5sums=('0c4a51ac28e8e9357f9fce3cef6cdc12')
+sha256sums=('3caa3a63a2f6d7e9f4ffd61eb924a3ba353224719525677eabee8c97ae3341a1')
 
 build() {
   cd nbclient-$pkgver
@@ -17,9 +18,14 @@
   python -m build --wheel --no-isolation
 }
 
+check() {
+  cd nbclient-$pkgver
+  pytest -v
+}
+
 package() {
-  cd "$srcdir/nbclient-$pkgver"
+  cd nbclient-$pkgver
   python -m installer --destdir="$pkgdir" dist/*.whl
 
-  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
 }



More information about the arch-commits mailing list