mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-26 14:53:52 +00:00
streamlink: don't propagate ffmpeg
This commit is contained in:
parent
01eb61122c
commit
57b84021f7
@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, python3Packages
|
||||
, fetchPypi
|
||||
, substituteAll
|
||||
, ffmpeg
|
||||
}:
|
||||
|
||||
@ -14,6 +15,13 @@ python3Packages.buildPythonApplication rec {
|
||||
hash = "sha256-kjrDJ/QCccWxRLEQ0virAdm0TLxN5PmtO/Zs+4Nc1MM=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./ffmpeg-path.patch;
|
||||
ffmpeg = lib.getExe ffmpeg;
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = with python3Packages; [
|
||||
setuptools
|
||||
];
|
||||
@ -27,7 +35,12 @@ python3Packages.buildPythonApplication rec {
|
||||
pytest-trio
|
||||
];
|
||||
|
||||
propagatedBuildInputs = (with python3Packages; [
|
||||
disabledTests = [
|
||||
# requires ffmpeg to be in PATH
|
||||
"test_no_cache"
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
certifi
|
||||
isodate
|
||||
lxml
|
||||
@ -40,8 +53,6 @@ python3Packages.buildPythonApplication rec {
|
||||
typing-extensions
|
||||
urllib3
|
||||
websocket-client
|
||||
]) ++ [
|
||||
ffmpeg
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
13
pkgs/applications/video/streamlink/ffmpeg-path.patch
Normal file
13
pkgs/applications/video/streamlink/ffmpeg-path.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/src/streamlink/stream/ffmpegmux.py b/src/streamlink/stream/ffmpegmux.py
|
||||
index 258b314a..c493e010 100644
|
||||
--- a/src/streamlink/stream/ffmpegmux.py
|
||||
+++ b/src/streamlink/stream/ffmpegmux.py
|
||||
@@ -80,7 +80,7 @@ class MuxedStream(Stream, Generic[TSubstreams]):
|
||||
|
||||
|
||||
class FFMPEGMuxer(StreamIO):
|
||||
- __commands__: ClassVar[List[str]] = ["ffmpeg"]
|
||||
+ __commands__: ClassVar[List[str]] = ["@ffmpeg@"]
|
||||
|
||||
DEFAULT_OUTPUT_FORMAT = "matroska"
|
||||
DEFAULT_VIDEO_CODEC = "copy"
|
Loading…
Reference in New Issue
Block a user