1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/community/py3-inquirer/APKBUILD
2021-04-05 18:18:28 +00:00

39 lines
1.6 KiB
Text

# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-inquirer
pkgver=2.7.0
pkgrel=2
pkgdesc="collection of common interactive command line user interfaces"
url="https://github.com/magmax/python-inquirer"
arch="noarch"
license="MIT"
depends="python3 py3-blessed py3-readchar py3-python-editor"
makedepends="py3-setuptools"
checkdepends="py3-flake8 py3-pexpect py3-pytest py3-pytest-cov py3-pytest-xdist
py3-mock py3-nosexcover py3-coveralls py3-wheel ncurses-terminfo"
# GH tarballs required for tests!
source="$pkgname-$pkgver.tar.gz::https://github.com/magmax/python-inquirer/archive/$pkgver.tar.gz
loosen-deps.patch
use-py3-in-tests.patch
disable-failing-tests.patch
"
builddir="$srcdir/python-inquirer-$pkgver"
build() {
python3 setup.py build
}
check() {
TERM=xterm-256color python3 setup.py test
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
# Remove installed tests
rm -r "$pkgdir"/usr/lib/python*/site-packages/tests
}
sha512sums="a837334409edb80817b23676def95b60210ea409bb6b761e4f6ec307f36df4b2a07612abd0b46fe69848f4c7c9ea8b94f98972efef512f88a11b2b661e55d6f4 py3-inquirer-2.7.0.tar.gz
00d471b866d93a34424606395056365e10af5260bb67f4aff989d50389c74426ed01bf053f076fd800dc1c3ca366a913c7fc80a79e570177b4660da02f92f647 loosen-deps.patch
08cb9047bdbb04f27162eb58c3ad6dbf0905b7a320e02be07c117f351967aa0059b14923cbbd5e73192b5009e58b70555550d010e0a857dbb9c69277488111ba use-py3-in-tests.patch
cbc376ae4f3200fbaa9b008a8c00ad264808421be2cccea08fb903f3dcf00a773a00ac0b928b71fc1e884b7341e73be38e79d32e4693fe263b635b0d4a6b6a7b disable-failing-tests.patch"