From bee33e68542376bfac1a670dd8b43b2b31a75e41 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 15 Feb 2026 20:33:17 +0100 Subject: [PATCH] python3Packages.ffmpy: relax uv constraint --- .../python-modules/ffmpy/default.nix | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/ffmpy/default.nix b/pkgs/development/python-modules/ffmpy/default.nix index d2aad42b2a99..bdb886cec55c 100644 --- a/pkgs/development/python-modules/ffmpy/default.nix +++ b/pkgs/development/python-modules/ffmpy/default.nix @@ -21,20 +21,23 @@ buildPythonPackage rec { hash = "sha256-TDE/r6qoWpkIU47+FPLqWgZAJd9FxSbZthhLh9g4evo="; }; - postPatch = - # Default to store ffmpeg. - '' - substituteInPlace ffmpy/ffmpy.py \ - --replace-fail \ - 'executable: str = "ffmpeg",' \ - 'executable: str = "${lib.getExe ffmpeg-headless}",' - '' - # The tests test a mock that does not behave like ffmpeg. If we default to the nix-store ffmpeg they fail. - + '' - for fname in tests/*.py; do - echo >>"$fname" 'FFmpeg.__init__.__defaults__ = ("ffmpeg", *FFmpeg.__init__.__defaults__[1:])' - done - ''; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "uv_build>=0.7.9,<0.10.0" uv_build + '' + # Default to store ffmpeg. + + '' + substituteInPlace ffmpy/ffmpy.py \ + --replace-fail \ + 'executable: str = "ffmpeg",' \ + 'executable: str = "${lib.getExe ffmpeg-headless}",' + '' + # The tests test a mock that does not behave like ffmpeg. If we default to the nix-store ffmpeg they fail. + + '' + for fname in tests/*.py; do + echo >>"$fname" 'FFmpeg.__init__.__defaults__ = ("ffmpeg", *FFmpeg.__init__.__defaults__[1:])' + done + ''; pythonImportsCheck = [ "ffmpy" ];