[arch-commits] Commit in python-ipywidgets/repos/community-any (PKGBUILD PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Wed Mar 16 08:18:23 UTC 2022


    Date: Wednesday, March 16, 2022 @ 08:18:22
  Author: arojas
Revision: 1155316

archrelease: copy trunk to community-any

Added:
  python-ipywidgets/repos/community-any/PKGBUILD
    (from rev 1155315, python-ipywidgets/trunk/PKGBUILD)
Deleted:
  python-ipywidgets/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   56 +++++++++++++++++++++++++-------------------------------
 1 file changed, 25 insertions(+), 31 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-16 08:18:12 UTC (rev 1155315)
+++ PKGBUILD	2022-03-16 08:18:22 UTC (rev 1155316)
@@ -1,31 +0,0 @@
-# Maintainer: Kyle Keen <keenerd at gmail.com>
-
-pkgname=python-ipywidgets
-pkgver=7.6.5
-pkgrel=4
-pkgdesc="IPython widgets for the Jupyter Notebook"
-arch=('any')
-url="https://github.com/ipython/ipywidgets"
-license=('BSD')
-depends=('python' 'jupyter-widgetsnbextension')
-makedepends=('python-setuptools' 'npm' 'git')
-
-source=("$pkgname-$pkgver.tgz::https://github.com/ipython/ipywidgets/archive/$pkgver.tar.gz")
-md5sums=('cd931c16b33b275434f513bbd073cf2c')
-
-build() {
-  cd "$srcdir/ipywidgets-$pkgver"
-  # needs node, downloads a lot of stuff, probably not reproducible
-  python3 setup.py build
-  #cd widgetsnbextension
-  #python3 setup.py build
-  #cd ..
-}
-
-package() {
-  cd "$srcdir/ipywidgets-$pkgver"
-  python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-  #cd widgetsnbextension
-  #python3 setup.py install --prefix=/usr --root="$pkgdir"
-}

Copied: python-ipywidgets/repos/community-any/PKGBUILD (from rev 1155315, python-ipywidgets/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-03-16 08:18:22 UTC (rev 1155316)
@@ -0,0 +1,25 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgname=python-ipywidgets
+_pipname=ipywidgets
+pkgver=7.7.0
+pkgrel=1
+pkgdesc="IPython widgets for the Jupyter Notebook"
+arch=('any')
+url="https://github.com/ipython/ipywidgets"
+license=('BSD')
+depends=('python' 'jupyter-widgetsnbextension')
+makedepends=('python-build' 'python-installer' 'python-wheel')
+source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz)
+md5sums=('61deb9024c3de1848812b97c2560d0cf')
+
+build() {
+  cd ipywidgets-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+package() {
+  cd ipywidgets-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}



More information about the arch-commits mailing list