[arch-commits] Commit in (3 files)

Antonio Rojas arojas at archlinux.org
Thu Dec 24 10:13:45 UTC 2020


    Date: Thursday, December 24, 2020 @ 10:13:43
  Author: arojas
Revision: 787000

Add jupyterlab-widgets

Added:
  jupyterlab-widgets/
  jupyterlab-widgets/trunk/
  jupyterlab-widgets/trunk/PKGBUILD

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

Added: jupyterlab-widgets/trunk/PKGBUILD
===================================================================
--- jupyterlab-widgets/trunk/PKGBUILD	                        (rev 0)
+++ jupyterlab-widgets/trunk/PKGBUILD	2020-12-24 10:13:43 UTC (rev 787000)
@@ -0,0 +1,30 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+_pipname=jupyterlab_widgets
+pkgname=${_pipname/_/-}
+pkgver=1.0.0rc1
+pkgrel=1
+pkgdesc="JupyterLab extension to use ipywidgets"
+arch=(any)
+url="https://jupyter.org/"
+license=(custom)
+depends=(jupyterlab python-ipywidgets)
+makedepends=(python-setuptools python-jupyter_packaging)
+source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz)
+sha256sums=('bf8a00f37ac5e5532f84997f901fc0b5f5539527426690b2be6b1bb72f9c0e4f')
+
+build() {
+  cd $_pipname-$pkgver
+  python setup.py build 
+}
+
+package() {
+  cd $_pipname-$pkgver
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+# These should be installed by setup.py, but they are not
+  mkdir -p "$pkgdir"/usr/share/jupyter/labextensions/@jupyter-widgets/
+  cp -r jupyterlab_widgets/labextension "$pkgdir"/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list