# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=py3-pytest-html pkgver=4.1.1 pkgrel=1 pkgdesc="pytest plugin for generating HTML reports" url="https://github.com/pytest-dev/pytest-html" arch="noarch" license="MPL-2.0" depends=" py3-jinja2 py3-pytest py3-pytest-metadata " makedepends=" npm py3-gpep517 py3-hatch-vcs py3-hatchling py3-wheel " checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-html/archive/refs/tags/$pkgver.tar.gz" options="!check" # Requires non-packaged dependencies builddir="$srcdir/pytest-html-$pkgver" export SETUPTOOLS_SCM_PRETEND_VERSION="$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=" c0cbb342d67ed222130907e43f9ab5ea792865598304d8de9b9da6d1d021a39c78468e79a7806b6a847384c555f060eb0236a905db29a92075e6b8682f12c838 py3-pytest-html-4.1.1.tar.gz "