Date: Wednesday, March 16, 2022 @ 08:18:12 Author: arojas Revision: 1155315
Update to 7.7.0, use pypi tarball instead of downloading stuff at build time Modified: python-ipywidgets/trunk/PKGBUILD ----------+ PKGBUILD | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-03-16 08:11:43 UTC (rev 1155314) +++ PKGBUILD 2022-03-16 08:18:12 UTC (rev 1155315) @@ -1,31 +1,25 @@ # Maintainer: Kyle Keen <[email protected]> pkgname=python-ipywidgets -pkgver=7.6.5 -pkgrel=4 +_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-setuptools' 'npm' 'git') +makedepends=('python-build' 'python-installer' 'python-wheel') +source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz) +md5sums=('61deb9024c3de1848812b97c2560d0cf') -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 .. + cd ipywidgets-$pkgver + python -m build --wheel --no-isolation } 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" + cd ipywidgets-$pkgver + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" }
