aports/testing/py3-click-command-tree/APKBUILD
2023-04-24 13:46:13 +00:00

44 lines
963 B
Plaintext

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-click-command-tree
pkgver=1.1.0
pkgrel=0
pkgdesc="click plugin to show the command tree of your CLI"
url="https://github.com/whwright/click-command-tree"
arch="noarch"
license="MIT"
depends="
python3
py3-click
"
makedepends="
py3-flake8
py3-gpep517
py3-installer
py3-setuptools
py3-wheel
"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/c/click-command-tree/click-command-tree-$pkgver.tar.gz"
options="!check" # No tests
builddir="$srcdir/click-command-tree-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
pytest
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
6e23f284ab2f5619f093486583e766165a510e01f60a0962c5ece76f7714577ed10c3b4ce6c0afd28459ed97657e3efcc0a010dbda228766102690d23113f194 click-command-tree-1.1.0.tar.gz
"