mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-17 12:46:47 +02:00
37 lines
1 KiB
Text
37 lines
1 KiB
Text
# Maintainer: Leonardo Arena <rnalrd@alpinelinx.org>
|
|
pkgname=py3-junit-xml
|
|
_pkgname=junit-xml
|
|
pkgver=1.9
|
|
pkgrel=3
|
|
pkgdesc="Creates JUnit XML test result documents that can be read by tools such as Jenkins"
|
|
options="!check" # 1 test fail
|
|
url="https://pypi.org/project/junit-xml"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-six"
|
|
makedepends="py3-setuptools py3-gpep517"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$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
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
2a8135255f649cf1ffe0fb580ea80cec1f00e6276ebb0cbc28feda64a8c788102f5b4b65a555b451b0e9b137118baaccb014ab86be0fa30fb6829d0734226619 junit-xml-1.9.tar.gz
|
|
"
|