projects/aports·blob master · refs

50 lines · 1.3 KiB

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