| 1 | # Contributor: Dmitry Zakharchenko <[email protected]> |
| 2 | # Maintainer: |
| 3 | pkgname=castero |
| 4 | pkgver=0.9.5 |
| 5 | pkgrel=5 |
| 6 | pkgdesc="TUI podcast client for the terminal" |
| 7 | url="https://github.com/xgi/castero" |
| 8 | arch="noarch" |
| 9 | license="MIT" |
| 10 | depends=" |
| 11 | py3-beautifulsoup4 |
| 12 | py3-cjkwrap |
| 13 | py3-grequests |
| 14 | py3-lxml |
| 15 | py3-mpv |
| 16 | py3-requests |
| 17 | py3-tz |
| 18 | python3 |
| 19 | " |
| 20 | makedepends="py3-gpep517 py3-setuptools py3-wheel" |
| 21 | checkdepends="py3-pytest" |
| 22 | subpackages="$pkgname-pyc" |
| 23 | source="$pkgname-$pkgver.tar.gz::https://github.com/xgi/castero/archive/v$pkgver.tar.gz |
| 24 | fix-display-tests.patch |
| 25 | " |
| 26 | |
| 27 | prepare() { |
| 28 | default_prepare |
| 29 | # Remove py3-vlc as we rely on py3-mpv |
| 30 | sed -i '/python-vlc/d' setup.py |
| 31 | } |
| 32 | |
| 33 | build() { |
| 34 | gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2 |
| 35 | } |
| 36 | |
| 37 | check() { |
| 38 | python3 -m venv --clear --without-pip --system-site-packages .testenv |
| 39 | .testenv/bin/python3 -m installer .dist/*.whl |
| 40 | .testenv/bin/python3 -m pytest -k 'not test_player_vlcplayer' |
| 41 | } |
| 42 | |
| 43 | package() { |
| 44 | python3 -m installer -d "$pkgdir" .dist/*.whl |
| 45 | } |
| 46 | |
| 47 | sha512sums=" |
| 48 | 3bd962f8a609dbd37cd133902f1cf8d619749179aeb790339a52849e4222c95b35d396a8b20e8690b412616cb2699fcba3d3ecfc87360579eaa08dfdddc9db30 castero-0.9.5.tar.gz |
| 49 | ccf2d58cf6c700feab8ef68a4c811f7df9489ddbdddc6188b1b7a57c6f247ca9442e813e577a7a252d8ab61a8b60b042338802972118af00ad4343134a45d5a2 fix-display-tests.patch |
| 50 | " |