# Maintainer: Carlos Aznarán # Contributor: jerry73204 _base=pyviz_comms pkgname=python-${_base} pkgdesc="Bidirectional communication for the PyViz ecosystem" pkgver=3.0.2 pkgrel=1 arch=(any) url="https://github.com/pyviz/${_base}" license=(BSD-3-Clause) depends=(python-param jupyterlab) makedepends=(python-build python-installer python-hatch-nodejs-version python-hatch-jupyter-builder python-wheel) source=(https://pypi.org/packages/source/${_base::1}/${_base}/${_base}-${pkgver}.tar.gz) sha512sums=('fc7fe018754b808fe3b7e04db2c576b7a456a3c1468b4ff483542ebe5aefecb251a7a34fe7e0d55e84594cdde76c8c7842880372124c588319667120fc9106df') build() { cd ${_base}-${pkgver} python -m build --wheel --skip-dependency-check --no-isolation } package() { cd ${_base}-${pkgver} PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}" install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" }