mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-25 23:41:39 +01:00
40 lines
1.2 KiB
Plaintext
40 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-datapi
|
|
_pkgorig=datapi
|
|
pkgver=0.3.1
|
|
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="
|
|
fd54d74412c92e983736bdff9cbad9228d806d4c7da757f650004da0fd7bbd2c5d692d63779d33d2db46f1913f04864d442068b36dc1fa23a25f70c34a0cc15a py3-datapi-0.3.1.tar.gz
|
|
"
|