# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-pytest-lazy-fixtures
pkgver=1.0.7
pkgrel=1
pkgdesc="Use your fixtures in @pytest.mark.parametrize"
url="https://github.com/dev-petrov/pytest-lazy-fixtures"
arch="all"
license="MIT"
depends="python3 py3-pytest"
makedepends="py3-gpep517 py3-setuptools py3-wheel py3-poetry-core"
source="https://github.com/dev-petrov/pytest-lazy-fixtures/archive/$pkgver/py3-pytest-lazy-fixtures-$pkgver.tar.gz"
builddir="$srcdir/pytest-lazy-fixtures-$pkgver"

build() {
	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
}

sha512sums="
4b8767d43c2568d5f28a49600f54db1260ae0177fb7da04d410b4d685b96ff7a7d12df80ce8a05187c273c44ff8032eb9a2b8d297edefeb643b51752e7d6a574  py3-pytest-lazy-fixtures-1.0.7.tar.gz
"
