[arch-commits] Commit in (3 files)

Antonio Rojas arojas at gemini.archlinux.org
Thu Mar 3 07:48:22 UTC 2022


    Date: Thursday, March 3, 2022 @ 07:48:21
  Author: arojas
Revision: 1140350

New nbclassic dependency

Added:
  jupyter-notebook-shim/
  jupyter-notebook-shim/trunk/
  jupyter-notebook-shim/trunk/PKGBUILD

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

Added: jupyter-notebook-shim/trunk/PKGBUILD
===================================================================
--- jupyter-notebook-shim/trunk/PKGBUILD	                        (rev 0)
+++ jupyter-notebook-shim/trunk/PKGBUILD	2022-03-03 07:48:21 UTC (rev 1140350)
@@ -0,0 +1,32 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.com>
+
+_pyname=notebook_shim
+pkgname=jupyter-notebook-shim
+pkgver=0.1.0
+pkgrel=1
+pkgdesc='Provides a way for JupyterLab and other frontends to switch to Jupyter Server for their Python Web application backend'
+arch=(any)
+url='https://github.com/jupyterlab/notebook_shim'
+license=(BSD)
+depends=(jupyter-server)
+makedepends=(python-build python-installer)
+checkdepends=(python-pytest-tornasync)
+source=(https://pypi.python.org/packages/source/n/$_pyname/$_pyname-$pkgver.tar.gz)
+sha256sums=('7897e47a36d92248925a2143e3596f19c60597708f7bef50d81fcd31d7263e85')
+
+build() {
+  cd $_pyname-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_pyname-$pkgver/$_pyname
+  pytest
+}
+
+package() {
+  cd $_pyname-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  mv "$pkgdir"/{usr/,}etc
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}



More information about the arch-commits mailing list