# Contributor: Iztok Fister, Jr. # Maintainer: Iztok Fister, Jr. pkgname=py3-cdsapi _pkgorig=cdsapi pkgver=0.6.1 pkgrel=1 pkgdesc="Python API to access the Copernicus Climate Data Store" url="https://github.com/ecmwf/cdsapi" arch="noarch" license="Apache-2.0 license" depends="python3 py3-requests py3-tqdm" makedepends="py3-setuptools" checkdepends="py3-pytest py3-pytest-runner" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/c/cdsapi/cdsapi-$pkgver.tar.gz" builddir="$srcdir/$_pkgorig-$pkgver" options="!check" # we need API key for test build() { python3 setup.py build } check() { python3 -m pytest } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" 99f25295fdd8be58837608f15fed4a98eee22844d312d2e4d6c377d1f8baac5c5dd78832d90a72c3c41d22c9dd8ca74d17a1afa8f8763e350d8a1cc95c97ae1c py3-cdsapi-0.6.1.tar.gz "