aports/main/py3-sphinxcontrib-qthelp/APKBUILD
2024-04-12 11:43:36 +02:00

34 lines
1.1 KiB
Text

# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-sphinxcontrib-qthelp
_pyname=sphinxcontrib-qthelp
pkgver=1.0.6
pkgrel=2
pkgdesc="Sphinx qthelp extension"
url="https://pypi.org/project/sphinxcontrib-qthelp"
arch="noarch"
license="BSD-2-Clause"
depends="python3"
makedepends="py3-gpep517 py3-flit-core py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-sphinx"
subpackages="$pkgname-pyc"
source="$_pyname-$pkgver.tar.gz::https://github.com/sphinx-doc/sphinxcontrib-qthelp/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
options="!check" # py3-sphinx is a circular dep
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="
44948edcb892ff2873ef9fee588a5685ae267cb374d3fe5dc25a29d72a77ee5ed195999d08228508cac4b3043d3db6392ce329b4548d91e0b9e6f72b7cf4bc07 sphinxcontrib-qthelp-1.0.6.tar.gz
"