1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 11:19:50 +03:00
aports/testing/py3-pytest-html/APKBUILD
ptrcnull d6e150e932
testing/*: rebuild against python 3.12
this is only a partial rebuild,
including stuff that i built on my personal machine
with python 3.12.2; might fail with 3.12.3
2024-04-15 17:00:47 +02:00

49 lines
1.2 KiB
Text

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
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
"