ayaports/testing/py3-click-repl/APKBUILD

35 lines
937 B
Text

# Contributor: psykose <alice@ayaya.dev>
# Maintainer: Antoien Martin (ayakael) <dev@ayakael.net>
pkgname=py3-click-repl
pkgver=0.3.0
pkgrel=2
pkgdesc="Subcommand REPL for click apps"
url="https://github.com/click-contrib/click-repl"
arch="noarch"
license="MIT"
depends="python3 py3-click py3-prompt_toolkit"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-pytest-cov"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/click-contrib/click-repl/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/click-repl-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
PYTHONPATH=. \
pytest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
4135cfd4a0b041d9e6446b4c938bb5863d851703f47f204cd78fc9e5ae6b7fd71215abbf08863d9a5cdb664f92df5fca2380a6efa7ddeb67dd6c9b1d4f210f65 py3-click-repl-0.3.0.tar.gz
"