1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/community/py3-pooch/APKBUILD
2023-02-28 02:23:19 +01:00

46 lines
1.1 KiB
Text

# Maintainer: psykose <alice@ayaya.dev>
pkgname=py3-pooch
pkgver=1.7.0
pkgrel=0
pkgdesc="Friend to fetch data files"
url="https://github.com/fatiando/pooch"
arch="noarch"
license="BSD-3-Clause"
depends="
py3-packaging
py3-platformdirs
py3-requests
python3
"
makedepends="
py3-gpep517
py3-setuptools_scm
py3-wheel
"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/fatiando/pooch/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/pooch-$pkgver"
options="!check" # missing pytest fixtures
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
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
rm -r "$pkgdir"/usr/lib/python3*/site-packages/pooch/tests/
}
sha512sums="
3827a4f0ab6b1b58df4c86a536a55b429e329f582e1d33e550870d7ac7c012bdc61d57ec2921722fa0e6f05accbdfd97f9cfbe633febf42258b0625d5640cc40 py3-pooch-1.7.0.tar.gz
"