8ddd61d984
[ci skip]
32 lines
1.2 KiB
Bash
32 lines
1.2 KiB
Bash
# Template file for 'streamlink'
|
|
pkgname=streamlink
|
|
version=1.0.0
|
|
revision=1
|
|
archs=noarch
|
|
build_style=python3-module
|
|
pycompile_module="streamlink streamlink_cli"
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3-setuptools python3-pycryptodome python3-pycountry
|
|
python3-pysocks python3-requests python3-websocket-client python3-isodate"
|
|
checkdepends="python3-pycryptodome python3-pycountry python3-pysocks
|
|
python3-pytest python3-requests-mock python3-websocket-client python3-isodate"
|
|
short_desc="Utility extracting streams from services, forked from livestreamer"
|
|
maintainer="wkuipers <wietse@kuiprs.nl>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://streamlink.github.io/"
|
|
changelog="https://raw.githubusercontent.com/streamlink/streamlink/master/CHANGELOG.md"
|
|
distfiles="https://github.com/streamlink/streamlink/releases/download/${version}/streamlink-${version}.tar.gz"
|
|
checksum=b0a355add636c37531efc76e784d1c9e390f3d171f039e07a6be717eb956bfc7
|
|
|
|
export STREAMLINK_USE_PYCOUNTRY=1
|
|
|
|
do_check() {
|
|
# in python3 mock is unittest.mock
|
|
sed -i 's| mock| unittest.mock|g' tests/streams/test_stream_streamprocess.py tests/streams/test_hls.py
|
|
|
|
PYTHONPATH="${PWD}/build/lib" python3 -m pytest
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|