castero: update to 0.9.3.

Fix runtime and check dependencies. Put depends= list in same order as
upstream requirements.txt.

Closes: #31767 [via git-merge-pr]
This commit is contained in:
Johannes Heimansberg 2021-07-02 22:06:59 +02:00 committed by Érico Nogueira
parent a79c002b54
commit 6fdb977f59

View file

@ -1,25 +1,32 @@
# Template file for 'castero' # Template file for 'castero'
pkgname=castero pkgname=castero
version=0.8.2 version=0.9.3
revision=3 revision=1
build_style=python3-module build_style=python3-module
hostmakedepends="python3-setuptools" hostmakedepends="python3-setuptools"
depends="python3-BeautifulSoup4 python3-cjkwrap python3-gevent # taken from https://github.com/xgi/castero/blob/master/requirements.txt,
python3-grequests python3-mpv python3-requests" # minus the test dependencies
depends="python3-mpv python3-requests python3-grequests python3-cjkwrap
python3-lxml python3-BeautifulSoup4 python3-pytz"
checkdepends="python3-pytest $depends"
short_desc="TUI podcast client for the terminal" short_desc="TUI podcast client for the terminal"
maintainer="Nathan Owens <ndowens04@gmail.com>" maintainer="Nathan Owens <ndowens04@gmail.com>"
license="MIT" license="MIT"
homepage="https://github.com/xgi/castero" homepage="https://github.com/xgi/castero"
distfiles="https://github.com/xgi/castero/archive/v${version}.tar.gz" distfiles="https://github.com/xgi/castero/archive/v${version}.tar.gz"
checksum=2dd0f33965e8d5908b3ad04660d810add538b579e9aa75c7237855a8193daf8e checksum=d0cea7efbfc0dd7ae01e496a81b67a1d4a47dbc2ab28ff61be5ae7910015717d
# Remove requirement of python3-vlc # Remove requirement of python3-vlc
# as we can use python3-mpv instead, # as we can use python3-mpv instead,
# also because python*-vlc is not in repo # also because python*-vlc is not in repo
pre_build() { post_patch() {
vsed -e '/python-vlc/d' -i setup.py vsed -e '/python-vlc/d' -i setup.py
} }
pre_check() {
rm tests/test_player_vlcplayer.py
}
post_install() { post_install() {
vlicense LICENSE.txt LICENSE vlicense LICENSE.txt LICENSE
} }