From adb5e9697c0f5b0b03236d14529826c7658d1b60 Mon Sep 17 00:00:00 2001 From: Dee Anzorge Date: Wed, 9 Apr 2025 21:39:31 +0200 Subject: [PATCH] streamlink: add the `decompress` extra This extra was added in Streamlink 7.2.0 and may be required by some websites. See https://github.com/streamlink/streamlink/pull/6451 --- pkgs/by-name/st/streamlink/package.nix | 36 ++++++++++++++++---------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/pkgs/by-name/st/streamlink/package.nix b/pkgs/by-name/st/streamlink/package.nix index 4762ab410a0c..7bcd013d9c96 100644 --- a/pkgs/by-name/st/streamlink/package.nix +++ b/pkgs/by-name/st/streamlink/package.nix @@ -4,6 +4,9 @@ fetchPypi, replaceVars, ffmpeg, + extras ? [ + "decompress" + ], }: python3Packages.buildPythonApplication rec { @@ -39,19 +42,26 @@ python3Packages.buildPythonApplication rec { "test_no_cache" ]; - propagatedBuildInputs = with python3Packages; [ - certifi - isodate - lxml - pycountry - pycryptodome - pysocks - requests - trio - trio-websocket - urllib3 - websocket-client - ]; + propagatedBuildInputs = + with python3Packages; + [ + certifi + isodate + lxml + pycountry + pycryptodome + pysocks + requests + trio + trio-websocket + urllib3 + websocket-client + ] + ++ lib.attrVals extras optional-dependencies; + + optional-dependencies = with python3Packages; { + decompress = urllib3.optional-dependencies.brotli ++ urllib3.optional-dependencies.zstd; + }; meta = { changelog = "https://streamlink.github.io/changelog.html";