blob: c2096ef7c844c33ab07d04bbb625206735744baa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-inquirer
pkgver=2.6.3
pkgrel=0
pkgdesc="A collection of common interactive command line user interfaces"
url="https://github.com/magmax/python-inquirer"
arch="noarch"
license="MIT"
depends="python3 py3-blessings 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="8f1fd76a1e109040ef12ab519224f100f966515af7306dd61b8fa6579b9cbc6f835d741390ef1daa4a18f755a25599579d7bfd1b6f532b4cdba99a65058dcc12 py3-inquirer-2.6.3.tar.gz
eea162938426f59d488422b956df611d5b074926c14ff024abffb905fb1af7a80ce705c981d4ad51c33890e00b64c935234bdaa65c2daa07b46a914526d11e8e loosen-deps.patch
08cb9047bdbb04f27162eb58c3ad6dbf0905b7a320e02be07c117f351967aa0059b14923cbbd5e73192b5009e58b70555550d010e0a857dbb9c69277488111ba use-py3-in-tests.patch
cbc376ae4f3200fbaa9b008a8c00ad264808421be2cccea08fb903f3dcf00a773a00ac0b928b71fc1e884b7341e73be38e79d32e4693fe263b635b0d4a6b6a7b disable-failing-tests.patch"
|