community/jupyterlab to 3.3.0-1

This commit is contained in:
David Beauchamp 2022-03-02 17:27:21 -05:00
parent 94145483c7
commit 6628849128

View file

@ -5,27 +5,27 @@
pkgname=jupyterlab pkgname=jupyterlab
_pipname=jupyterlab _pipname=jupyterlab
pkgver=3.2.9 pkgver=3.3.0
pkgrel=1 pkgrel=1
pkgdesc='JupyterLab computational environment' pkgdesc='JupyterLab computational environment'
arch=(any) arch=(any)
url='https://github.com/jupyterlab/jupyterlab' url='https://github.com/jupyterlab/jupyterlab'
license=(custom) license=(custom)
makedepends=(python-setuptools) makedepends=(python-build python-installer)
depends=(python-jupyterlab_server python-jupyter_packaging jupyter-nbclassic nodejs) depends=(python-jupyterlab_server python-jupyter_packaging jupyter-nbclassic nodejs)
optdepends=('npm: to install extensions' 'jupyterlab-widgets: ipywidgets support') optdepends=('npm: to install extensions' 'jupyterlab-widgets: ipywidgets support')
source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz) source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz)
sha256sums=('65ddc34e5da1a764606e38c4f70cf9d4ac1c05182813cf0ab2dfea312c701124') sha256sums=('c7a1997bebf5487f8c17587f519039125014d122cdd5d60beffad4b266da330f')
build() { build() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
export NODE_OPTIONS=--max-old-space-size=1024 export NODE_OPTIONS=--max-old-space-size=1024
python setup.py build python -m build --wheel --no-isolation
} }
package() { package() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 python -m installer --destdir="$pkgdir" dist/*.whl
mv "$pkgdir"/usr/etc "$pkgdir" mv "$pkgdir"/usr/etc "$pkgdir"
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE