aports/testing/py3-rich-click/APKBUILD
ptrcnull d6e150e932
testing/*: rebuild against python 3.12
this is only a partial rebuild,
including stuff that i built on my personal machine
with python 3.12.2; might fail with 3.12.3
2024-04-15 17:00:47 +02:00

44 lines
1 KiB
Text

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-rich-click
pkgver=1.7.3
pkgrel=1
pkgdesc="Format click help output nicely with rich"
url="https://github.com/ewels/rich-click"
arch="noarch"
license="MIT"
depends="
py3-click
py3-rich
py3-typing-extensions
"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ewels/rich-click/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/rich-click-$pkgver"
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="
f3e967142fcf5ba042265b4bd4a1f3f90df38f07996dd981f537bb226d144aa7c74c1bdbcb945d3048c5cdae02a06a1aaffce1633bbcfd568bc3ea466b08767d py3-rich-click-1.7.3.tar.gz
"