mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 13:16:45 +02:00
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
# Contributor: Keith Toh <ktprograms@gmail.com>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-sphinx-argparse
|
|
pkgver=0.5.2
|
|
pkgrel=0
|
|
pkgdesc="Sphinx extension that automatically documents argparse commands and options"
|
|
url="https://sphinx-argparse.readthedocs.io/en/latest/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-sphinx"
|
|
makedepends="py3-gpep517 py3-installer py3-flit-core py3-wheel"
|
|
checkdepends="py3-pytest py3-lxml"
|
|
subpackages="$pkgname-pyc"
|
|
source="sphinx-argparse-$pkgver.tar.gz::https://github.com/ashb/sphinx-argparse/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/sphinx-argparse-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--output-fd 3 3>&1 >&2 \
|
|
--wheel-dir .dist
|
|
}
|
|
|
|
check() {
|
|
pytest -v
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/sphinx_argparse-$pkgver-py3-none-any.whl
|
|
install -Dm644 LICENCE.rst -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
}
|
|
|
|
sha512sums="
|
|
dbf6c5e87a3c864d16eab5ecf644754b71e240ae823ffb82a17950e17b2a916188fbe44c4b0551a1c31763accd4eec7e9ce8fc99f8b47a22a7ae4e69133a75ee sphinx-argparse-0.5.2.tar.gz
|
|
"
|