Merge pull request #146461 from DeeUnderscore/streamlink-3.0.1

streamlink: 2.4.0 -> 3.0.1
This commit is contained in:
Thiago Kenji Okada 2021-11-18 11:50:37 -03:00 committed by GitHub
commit e570c93031
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,17 +1,16 @@
{ lib { lib
, python3Packages , python3Packages
, rtmpdump
, ffmpeg , ffmpeg
, fetchpatch , fetchpatch
}: }:
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "streamlink"; pname = "streamlink";
version = "2.4.0"; version = "3.0.1";
src = python3Packages.fetchPypi { src = python3Packages.fetchPypi {
inherit pname version; inherit pname version;
sha256 = "e95588e222d1a7bd51e3171cd4bce84fd6f646418537aff37993d40f597810af"; sha256 = "sha256-GDbUlu5tRL5mdT7KrIdmxCbeAtYL1xvZXyZFwiuvKXo=";
}; };
checkInputs = with python3Packages; [ checkInputs = with python3Packages; [
@ -22,26 +21,20 @@ python3Packages.buildPythonApplication rec {
]; ];
propagatedBuildInputs = (with python3Packages; [ propagatedBuildInputs = (with python3Packages; [
pycryptodome
requests
iso-639
iso3166
websocket-client
isodate isodate
lxml lxml
pycountry
pycryptodome
pysocks
requests
websocket-client
]) ++ [ ]) ++ [
rtmpdump
ffmpeg ffmpeg
]; ];
patches = [ postPatch = ''
# Patch failing tests to expect correct Accept-Encoding as generated by Requests substituteInPlace setup.cfg --replace 'lxml >=4.6.4,<5.0' 'lxml'
(fetchpatch { '';
url = "https://github.com/streamlink/streamlink/commit/ae747a113199c119bced4613d33edcc67a222bb9.patch";
includes = [ "tests/test_stream_json.py" ];
sha256 = "sha256-KEgyWdh5DNgNktmLSvKQowUQO9p9Q7zP4NbCQJPNgKw=";
})
];
meta = with lib; { meta = with lib; {
homepage = "https://streamlink.github.io/"; homepage = "https://streamlink.github.io/";