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