1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/community/py3-cdsapi/APKBUILD
2025-05-14 12:06:33 +00:00

38 lines
1.1 KiB
Text

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-cdsapi
_pkgorig=cdsapi
pkgver=0.7.6
pkgrel=0
pkgdesc="Python API to access the Copernicus Climate Data Store"
url="https://github.com/ecmwf/cdsapi"
arch="noarch"
license="Apache-2.0"
depends="py3-datapi py3-requests py3-tqdm py3-setuptools"
makedepends="py3-gpep517 py3-wheel"
checkdepends="py3-pytest-xdist"
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() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest -n auto
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
39f2613be1c2e0a233a465b485a085d53f47dd83c81663eeca46a1d396b1fd3a1af03713b322977d49ce15bdd18d72430cbe1e47f35f322fce1426656f6d9b44 py3-cdsapi-0.7.6.tar.gz
"