summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/ffmpeg-python
diff options
context:
space:
mode:
authorEmily <vcs@emily.moe>2024-07-14 10:22:34 +0100
committerEmily <vcs@emily.moe>2024-08-09 23:04:23 +0100
commita67b434df2b2c0c8a4ae61f56db650ce3f4c5547 (patch)
tree5fda5a69035ad20183b09fbde7f9bc579f814615 /pkgs/development/python-modules/ffmpeg-python
parentec5081355bd44b512c77c26852fe62fa7402c301 (diff)
python3Packages.ffmpeg-python: add patches for FFmpeg 7
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 ];