aports/community/py3-sphinxcontrib-apidoc/APKBUILD
2025-05-10 13:43:52 +00:00

35 lines
1.1 KiB
Text

# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-sphinxcontrib-apidoc
pkgver=0.6.0
pkgrel=0
pkgdesc="A Sphinx extension for running sphinx-apidoc on each build"
url="https://github.com/sphinx-contrib/apidoc"
arch="noarch"
license="BSD-2-Clause"
depends="py3-sphinx"
makedepends="py3-gpep517 py3-pbr py3-setuptools py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/s/sphinxcontrib_apidoc/sphinxcontrib_apidoc-$pkgver.tar.gz"
builddir="$srcdir/sphinxcontrib_apidoc-$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="
5bc7750d92d911e77daaa0023f8c4de00dcd68ce6fc82b0cd69fa902c3b9296605958cef0151f26537ada23aae49d76beb579a254ec0c604694f39f12f6100ae sphinxcontrib_apidoc-0.6.0.tar.gz
"