# Maintainer: Achmad Fathoni pkgname=python-voila _pkgname=${pkgname:7} pkgver=0.5.0 pkgrel=2 pkgdesc="VoilĂ  turns Jupyter notebooks into standalone web applications" arch=('any') url="https://voila.readthedocs.io" license=(BSD) makedepends=(python-build python-installer python-wheel python-jupyter_packaging) depends=( python jupyter-server python-jupyterlab_server python-jupyter_client jupyter-nbclient jupyter-nbconvert jupyterlab jupyter-notebook jupyter-lsp python-websockets python-traitlets python-hatchling python-tinycss2 ) makedepends+=( python-fqdn python-webcolors python-isoduration python-jsonpointer python-uri-template python-rfc3339-validator python-rfc3986-validator python-jupyter-server-terminals python-hatch-jupyter-builder python-debugpy ) source=(https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz) sha256sums=('945978aa636b247ee8140c3676cf2acc9d5d8324dadee7c33e9f51c8c9de37ce') prepare() { cd ${srcdir}/${_pkgname}-${pkgver} sed -i 's|jupyterlab~=3.0|jupyterlab>=3.0|g' pyproject.toml } build() { cd ${srcdir}/${_pkgname}-${pkgver} python -m build --wheel --no-isolation } package() { cd ${srcdir}/${_pkgname}-${pkgver} python -m installer --destdir="$pkgdir" dist/*.whl }