mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
39 lines
949 B
Text
39 lines
949 B
Text
# Maintainer: psykose <alice@ayaya.dev>
|
|
pkgname=py3-docopt-ng
|
|
pkgver=0.8.1
|
|
pkgrel=1
|
|
pkgdesc="Humane command line arguments parser"
|
|
url="https://github.com/jazzband/docopt-ng"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="py3-pytest"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/jazzband/docopt-ng/archive/refs/tags/$pkgver.tar.gz"
|
|
builddir="$srcdir/docopt-ng-$pkgver"
|
|
options="!check" # todo
|
|
|
|
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="
|
|
e6421c26534f659beec7ee929232a96f9fdc7d5c14283a715c666cae5d7c2591bbb4965a66aa19f182e178619e6984e06996f1bf6fb1f175029ae2e043ea5a96 py3-docopt-ng-0.8.1.tar.gz
|
|
"
|