# Maintainer: pkgname=py3-pooch pkgver=1.7.0 pkgrel=2 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" subpackages="$pkgname-pyc" 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 "