streamlink: 2.4.0 -> 3.0.1

+9 -16
+9 -16
pkgs/applications/video/streamlink/default.nix
··· 1 1 { lib 2 2 , python3Packages 3 - , rtmpdump 4 3 , ffmpeg 5 4 , fetchpatch 6 5 }: 7 6 8 7 python3Packages.buildPythonApplication rec { 9 8 pname = "streamlink"; 10 - version = "2.4.0"; 9 + version = "3.0.1"; 11 10 12 11 src = python3Packages.fetchPypi { 13 12 inherit pname version; 14 - sha256 = "e95588e222d1a7bd51e3171cd4bce84fd6f646418537aff37993d40f597810af"; 13 + sha256 = "sha256-GDbUlu5tRL5mdT7KrIdmxCbeAtYL1xvZXyZFwiuvKXo="; 15 14 }; 16 15 17 16 checkInputs = with python3Packages; [ ··· 22 21 ]; 23 22 24 23 propagatedBuildInputs = (with python3Packages; [ 24 + isodate 25 + lxml 26 + pycountry 25 27 pycryptodome 28 + pysocks 26 29 requests 27 - iso-639 28 - iso3166 29 30 websocket-client 30 - isodate 31 - lxml 32 31 ]) ++ [ 33 - rtmpdump 34 32 ffmpeg 35 33 ]; 36 34 37 - patches = [ 38 - # Patch failing tests to expect correct Accept-Encoding as generated by Requests 39 - (fetchpatch { 40 - url = "https://github.com/streamlink/streamlink/commit/ae747a113199c119bced4613d33edcc67a222bb9.patch"; 41 - includes = [ "tests/test_stream_json.py" ]; 42 - sha256 = "sha256-KEgyWdh5DNgNktmLSvKQowUQO9p9Q7zP4NbCQJPNgKw="; 43 - }) 44 - ]; 35 + postPatch = '' 36 + substituteInPlace setup.cfg --replace 'lxml >=4.6.4,<5.0' 'lxml' 37 + ''; 45 38 46 39 meta = with lib; { 47 40 homepage = "https://streamlink.github.io/";