aports/community/py3-cads-api-client/APKBUILD
2024-09-10 22:00:55 +00:00

38 lines
1.2 KiB
Plaintext

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-cads-api-client
pkgver=1.3.2
pkgrel=0
pkgdesc="CADS API Python client for developing and testing"
url="https://github.com/ecmwf-projects/cads-api-client"
arch="noarch"
license="Apache-2.0"
depends="py3-attrs py3-multiurl py3-requests py3-responses py3-typing-extensions"
makedepends="py3-gpep517 py3-setuptools_scm py3-wheel"
checkdepends="py3-pytest-xdist"
subpackages="$pkgname-pyc"
source="https://github.com/ecmwf-projects/cads-api-client/archive/v$pkgver/cads-api-client-$pkgver.tar.gz"
builddir="$srcdir/cads-api-client-$pkgver"
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
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="
a43aa266cf9555d2461364827a4f5bd46d10ce75163fdd230fef782d9310aaaa7c2d17f76341cbf2b33ee947f1a591e368145691295c6cfb8c6bac236972abc5 cads-api-client-1.3.2.tar.gz
"