# Maintainer: Carlos Aznarán # Contributor: jerry73204 _base=geoviews pkgname=python-${_base} pkgver=1.12.0 pkgrel=1 pkgdesc="Simple, concise geographical visualization in Python" arch=(any) url="https://github.com/pyviz/${_base}" license=(BSD-3-Clause) depends=(python-cartopy python-holoviews) makedepends=(python-build python-installer python-setuptools python-wheel npm) checkdepends=(python-pytest python-geopandas python-spatialpandas) # python-xarray # optdepends=('python-datashader: for ' # 'python-geopandas: for ' # 'python-osgeo: for ' # gdal # 'jupyter-notebook: for ' # 'python-matplotlib: for ' # ) source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz) sha512sums=('b75a206313c4df58e1b70e3d785de55c574d90ae6fa10e1f05d9e363701e3bbd9b0cd070bce46966537db2260870eaa6d047371bf7b6eec1477923bc72a59405') build() { cd ${_base}-${pkgver} python -m build --wheel --skip-dependency-check --no-isolation } check() { cd ${_base}-${pkgver} python -m venv --system-site-packages test-env test-env/bin/python -m installer dist/*.whl test-env/bin/python -m pytest ${_base}/tests } package_python-geoviews() { cd ${_base}-${pkgver} PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" }