1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00
aports/community/py3-cli_helpers/APKBUILD

35 lines
1.1 KiB
Text

# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: omni <omni+alpine@hack.org>
maintainer="omni <omni+alpine@hack.org>"
pkgname=py3-cli_helpers
_pkgname=cli_helpers
pkgver=2.4.0
pkgrel=0
pkgdesc="A helper library for command-line interfaces"
url="https://pypi.org/project/cli-helpers"
arch="noarch"
license="BSD-3-Clause"
depends="py3-tabulate py3-configobj"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-wcwidth"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/dbcli/cli_helpers/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$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="
33d2d706634bcb0143af0fbc2df1baae58004c7544793367cfc8d80ca15b0ac709730ec4b5dfb6a7cdb199323cb153c69988b4127d8bf218040e7be1a9408737 py3-cli_helpers-2.4.0.tar.gz
"