mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 11:19:50 +03:00
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
40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-click-default-group
|
|
pkgver=1.2.4
|
|
pkgrel=1
|
|
pkgdesc="Extends click.Group to invoke a command without explicit subcommand name"
|
|
url="https://github.com/click-contrib/click-default-group"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="py3-click"
|
|
makedepends="
|
|
py3-flit-core
|
|
py3-gpep517
|
|
py3-wheel
|
|
"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/click-contrib/click-default-group/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/click-default-group-$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 -k 'not test_default_command_with_arguments'
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
0239e703421e693399e8e54e4a6bdc4a74e6f16307f008ee742788ce3e8040f633de2b1bf12997a5c448b70cb55f77ccd4f42c5b4abe3b6a05df18908daf61da py3-click-default-group-1.2.4.tar.gz
|
|
"
|