aports/community/py3-sphinxcontrib-jquery/APKBUILD
2023-04-28 23:45:29 +00:00

43 lines
1.2 KiB
Plaintext

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-sphinxcontrib-jquery
pkgver=4.1
pkgrel=1
pkgdesc="Sphinx jquery extension"
url="https://github.com/sphinx-contrib/jquery"
arch="noarch"
license="0BSD"
depends="py3-sphinx"
makedepends="
py3-flit-core
py3-gpep517
"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/sphinx-contrib/jquery/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir"/jquery-$pkgver
replaces="py-sphinxcontrib-images" # Backwards compatibility
provides="py-sphinxcontrib-images=$pkgver-r$pkgrel" # Backwards compatibility
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="
17c6b69952171a715c12dea146e8654b3de7940ff4d357ac9fa0070c3daa057e156279d2ca292e4367a5788d58b7347a4df1539b33bdfbea2319473c189dff6a py3-sphinxcontrib-jquery-4.1.tar.gz
"