# Maintainer: Carlos Aznarán # Contributor: jerry73204 _base=pyviz_comms pkgname=python-${_base} pkgdesc="Bidirectional communication for the PyViz ecosystem" pkgver=2.3.0 pkgrel=1 arch=(any) url="https://github.com/pyviz/${_base}" license=('custom:BSD-3-clause') depends=(python-param jupyterlab) makedepends=(python-build python-installer python-setuptools python-wheel) source=(https://pypi.org/packages/source/${_base::1}/${_base}/${_base}-${pkgver}.tar.gz) sha512sums=('7d0ef99aa1fd041e6f8ca4d39c88a817a6ca3aed66f5a0cc8e6d1a34095a96a23435b5a1ffdc4fe74978eed11ff68ffa6be9b744d6d9f0ee035f9034428bc010') 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}" }