# Template file for 'streamlink'
pkgname=streamlink
version=2.3.0
revision=1
build_style=python3-module
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-mock python3-requests-mock python3-websocket-client
 python3-isodate python3-freezegun"
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=1497e6dc5d2fb8c5b17688f20ca2e8989a279de804a4de37d2107af33b9faa04
make_check=ci-skip # some tests fail when running as root

export STREAMLINK_USE_PYCOUNTRY=1

post_install() {
	vlicense LICENSE
}
