# Template file for 'streamlink'
pkgname=streamlink
version=3.0.2
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-lxml python3-pycryptodome python3-pycountry
 python3-pysocks python3-requests python3-websocket-client python3-isodate"
checkdepends="$depends python3-pytest python3-mock python3-requests-mock
 python3-freezegun"
short_desc="Utility extracting streams from services, forked from livestreamer"
maintainer="Michal Vasilek <michal@vasilek.cz>"
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=d4d0fbf2067af32d2c3e8a6bea7ea1cef6a28020fe452a80d8bd55c2a5fed68a
make_check=ci-skip # some tests fail when running as root

post_install() {
	vlicense LICENSE
}
