projects/aports·blob master · refs

34 lines · 924 B

1# Contributor: Leo <[email protected]>
2maintainer="Achill Gilgenast <[email protected]>"
3pkgname=py3-blessed
4pkgver=1.21.0
5pkgrel=2
6pkgdesc="Easy, practical library for making terminal apps"
7options="!check" # Some tests fail
8url="https://pypi.org/project/blessed/"
9arch="noarch"
10license="MIT"
11depends="python3 py3-wcwidth"
12makedepends="py3-setuptools"
13checkdepends="py3-pytest py3-mock ncurses"
14subpackages="$pkgname-pyc"
15source="https://pypi.io/packages/source/b/blessed/blessed-$pkgver.tar.gz"
16builddir="$srcdir/blessed-$pkgver"
17
18build() {
19 rm -f blessed/win_terminal.py
20 python3 setup.py build
21}
22
23check() {
24 rm -f tox.ini
25 TERM=linux PYTHONPATH="$PWD/build/lib" py.test-3
26}
27
28package() {
29 python3 setup.py install --skip-build --root="$pkgdir"
30}
31
32sha512sums="
33e57b9ede0706875b578b080b6a7cc65c2882b52c5b5b85a13c615f8419618ceae6ded31228784f20504c5204c0b6897a9d7122c45785cd68982772169ee7222f blessed-1.21.0.tar.gz
34"