# Contributor: Andy Hawkins <andy@gently.org.uk>
# Maintainer: Andy Hawkins <andy@gently.org.uk>
pkgname=py3-parametrize-from-file
pkgver=0.20.0
pkgrel=1
pkgdesc="Parametrize From File"
url="https://parametrize-from-file.readthedocs.io/en/latest/"
arch="noarch"
license="MIT"
depends="
	python3>=3.8
	py3-toml
	py3-yaml
	py3-nestedtext
	py3-tidyexc
	py3-more-itertools>=8.10
	py3-decopatch
	"
makedepends="
	py3-flit-core
	py3-gpep517
	"
checkdepends="
	py3-pytest
	py3-pytest-cov
	py3-coveralls
	py3-numpy
	"
subpackages="$pkgname-pyc"
source="https://github.com/kalekundert/parametrize_from_file/archive/v$pkgver/parametrize_from_file-v$pkgver.tar.gz"
builddir="$srcdir/parametrize_from_file-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/parametrize_from_file*.whl
}

sha512sums="
b6911d2f2429b97f5a6a2ae81695a900aa27b9287ea07e0cfb9b791c2d36c42d44f01ee65f0a7c4517ac749d7ad2b0ad8c51b065be68d0d9bc570104bde9d205  parametrize_from_file-v0.20.0.tar.gz
"
