# Maintainer: Blair Bonnett pkgname=python-erddapy pkgdesc='Retrieve scientific datasets from ERDDAP servers' pkgver=2.2.0 pkgrel=1 url='https://ioos.github.io/erddapy/' arch=('any') license=('BSD') depends=( 'python-httpx' 'python-netcdf4' 'python-pandas' 'python-pytz' 'python-xarray' ) makedepends=( 'python-build' 'python-installer' 'python-setuptools' 'python-setuptools-scm' 'python-wheel' ) optdepends=( 'python-joblib: parallel searching' ) _pypi=erddapy source=( "https://files.pythonhosted.org/packages/source/${_pypi::1}/$_pypi/$_pypi-$pkgver.tar.gz" ) sha256sums=( 'c76b115fb27a248e1a463db7358ec886b1252bde8857669679b4c507b1a1570d' ) build() { cd "$_pypi-$pkgver" python -m build --wheel --no-isolation } package() { cd "$_pypi-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt }