1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/testing/py3-pytest-html/APKBUILD
2023-10-19 17:10:37 +02:00

46 lines
1.1 KiB
Text

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-pytest-html
pkgver=3.2.0
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="
py3-gpep517
py3-setuptools
py3-setuptools_scm
py3-wheel
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-html/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # Completely broken
builddir="$srcdir/pytest-html-$pkgver"
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
}
sha512sums="
096e9d52a5f0ea69b18bf7743d6ff45fb4ac7ba59acc6b85a59e8d3d9f65868cdea157954e1e7d84da69f85e3a7d35c073f2cbe39cd9b3275d89e51b0c33dea6 py3-pytest-html-3.2.0.tar.gz
"