mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-14 11:49:53 +03:00
39 lines
1.2 KiB
Text
39 lines
1.2 KiB
Text
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
pkgname=py3-datapi
|
|
_pkgorig=datapi
|
|
pkgver=0.4.0
|
|
pkgrel=0
|
|
pkgdesc="ESEE Data Stores API Python Client"
|
|
url="https://github.com/ecmwf-projects/datapi"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="py3-attrs py3-requests py3-tqdm py3-setuptools_scm"
|
|
makedepends="py3-gpep517 py3-wheel"
|
|
checkdepends="py3-pytest-xdist"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/d/datapi/datapi-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgorig-$pkgver"
|
|
options="!check" # we need API key for test
|
|
|
|
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="
|
|
fea487219b913a67af1454dcef219095614bdebba85aae2f85b46fdad0895b11c0f30727a2c75e68d46976ffb1e20e58640c7a92c5dfa3b5a7613f87c240d3f1 py3-datapi-0.4.0.tar.gz
|
|
"
|