aports/testing/py3-clickclick/APKBUILD
2024-08-06 14:24:02 +02:00

55 lines
1.5 KiB
Text

# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
pkgname=py3-clickclick
_pkgname=python-clickclick
pkgver=20.10.2
pkgrel=4
pkgdesc="Click command line utilities"
url="https://codeberg.org/hjacobs/python-clickclick"
arch="noarch"
license="Apache-2.0"
checkdepends="
py3-pytest
py3-pytest-cov
py3-toml
"
makedepends="
py3-flake8
py3-setuptools
py3-gpep517
"
depends="
py3-click
py3-yaml
python3
"
subpackages="$pkgname-pyc"
source="
$pkgname-$pkgver.tar.gz::https://codeberg.org/hjacobs/$_pkgname/archive/$pkgver.tar.gz
Remove-unused-six-from-setup_requires-1.patch
fix-quoting-style-in-assert.patch
"
builddir="$srcdir/$_pkgname"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="
d8954d231bff6945ac0e8350be05775a8a0b852dd0284e3446b3f9c8bc5861870ed1bc058e132c144fe8d543aee87d7a7a54894abdb4006664e5994c8cfb507f py3-clickclick-20.10.2.tar.gz
b2a6c1517f0fe8c35d89c886340afb20f18f107328fd34271b1d56743fd194b0d2fce277036b689498173e65b13b51620d9ed8809d41c8b98004440af8c8fd73 Remove-unused-six-from-setup_requires-1.patch
977a63eb6210b3d9d65eabe11c0ef7ed68947147e4704909027547efda512472240affcc1ce0ebb381433bcecfbb325af91903093ca7add0496a9a63f9592f82 fix-quoting-style-in-assert.patch
"