mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-15 10:42:39 +02:00
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
# 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.0
|
|
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-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="
|
|
4975a31ff6498e443cbc859ac3f2dedda34f6926f5ef8d828863abcda97b6f7d0854779d1c022d48c200a24c3fedf2f5fe6d56762e83f7779d367a1f445106d3 py3-cdsapi-0.7.0.tar.gz
|
|
"
|