summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/ffmpeg-python
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/ffmpeg-python')
-rw-r--r--pkgs/development/python-modules/ffmpeg-python/default.nix18
1 files changed, 16 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/ffmpeg-python/default.nix b/pkgs/development/python-modules/ffmpeg-python/default.nix
index ee9c19acbd31..c337d64dc7ee 100644
--- a/pkgs/development/python-modules/ffmpeg-python/default.nix
+++ b/pkgs/development/python-modules/ffmpeg-python/default.nix
@@ -7,7 +7,7 @@
setuptools,
pytestCheckHook,
pytest-mock,
- ffmpeg_4,
+ ffmpeg_7,
}:
buildPythonPackage {
@@ -25,7 +25,7 @@ buildPythonPackage {
patches = [
(substituteAll {
src = ./ffmpeg-location.patch;
- ffmpeg = ffmpeg_4;
+ ffmpeg = ffmpeg_7;
})
# Remove dependency on `future`
@@ -34,6 +34,20 @@ buildPythonPackage {
url = "https://github.com/kkroening/ffmpeg-python/commit/dce459d39ace25f03edbabdad1735064787568f7.patch?full_index=1";
hash = "sha256-ZptCFplL88d0p2s741ymHiwyDsDGVFylBJ8FTrZDGMc=";
})
+
+ # Fix ffmpeg/tests/test_ffmpeg.py: test_pipe() (v1: ignore duplicate frames)
+ # https://github.com/kkroening/ffmpeg-python/pull/726
+ (fetchpatch2 {
+ url = "https://github.com/kkroening/ffmpeg-python/commit/557ed8e81ff48c5931c9249ec4aae525347ecf85.patch?full_index=1";
+ hash = "sha256-XrL9yLaBg1tu63OYZauEb/4Ghp2zHtiF6vB+1YYbv1Y=";
+ })
+
+ # Fix `test__probe` on FFmpeg 7
+ # https://github.com/kkroening/ffmpeg-python/pull/848
+ (fetchpatch2 {
+ url = "https://github.com/kkroening/ffmpeg-python/commit/eeaa83398ba1d4e5b470196f7d4c7ca4ba9e8ddf.patch?full_index=1";
+ hash = "sha256-/qxez4RF/RPRr9nA+wp+XB49L3VNgnMwMQhFD2NwijU=";
+ })
];
build-system = [ setuptools ];