aports/main/py3-sphinx/APKBUILD
2025-03-14 13:45:07 +00:00

59 lines
1.6 KiB
Text

# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Contributor: Fabricio Silva <hi@fabricio.dev>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-sphinx
pkgver=8.2.3
pkgrel=1
pkgdesc="Python Documentation Generator"
# checkdepends require 'imagemagick' and 'py3-html5lib' which
# are in community/, 'imagemagick' itself also needs 'librsvg'
# and 'libheif', which bring in 'rust', 'x265' and others, this
# is too much of a burden to put on main/
options="!check"
url="https://www.sphinx-doc.org/"
arch="noarch"
license="BSD-2-Clause"
depends="
py3-babel
py3-docutils
py3-imagesize
py3-jinja2
py3-packaging
py3-pygments
py3-requests
py3-snowballstemmer
py3-alabaster
py3-roman-numerals
py3-sphinxcontrib-applehelp
py3-sphinxcontrib-devhelp
py3-sphinxcontrib-htmlhelp
py3-sphinxcontrib-jsmath
py3-sphinxcontrib-serializinghtml
py3-sphinxcontrib-qthelp
"
makedepends="py3-gpep517 py3-flit-core py3-installer"
# imagemagick is for tests/test_ext_imgconverter.py::test_ext_imgconverter
# which calls the 'convert' binary
checkdepends="py3-pytest py3-funcsigs py3-pluggy imagemagick py3-html5lib"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/sphinx-doc/sphinx/archive/v$pkgver.tar.gz"
builddir="$srcdir/sphinx-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
make PYTHON=python3 test
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/sphinx-*.whl
}
sha512sums="
23066d9e98f3e36ee34ac3bc5af45792762f858e1e670145b7d1db7e98fa9e9654d87a27b9316dd72704aeea75b53f73d07d22f723c915d23a95f59bbd4f6365 py3-sphinx-8.2.3.tar.gz
"