Commit f079f093 authored by Benjamin Sparks's avatar Benjamin Sparks
Browse files

python3Packages.ffmpy: unbreak build with uv-build >=0.8.0

parent b6b14647
Loading
Loading
Loading
Loading
+17 −11
Original line number Diff line number Diff line
@@ -24,7 +24,8 @@ buildPythonPackage rec {
    hash = "sha256-U20mBg+428kkka6NY9qc7X8jH8A5bKa++g2+PTn/MYg=";
  };

  postPatch = ''
  postPatch =
    ''
      # default to store ffmpeg
      substituteInPlace ffmpy/ffmpy.py \
        --replace-fail \
@@ -35,6 +36,11 @@ buildPythonPackage rec {
      for fname in tests/*.py; do
        echo >>"$fname" 'FFmpeg.__init__.__defaults__ = ("ffmpeg", *FFmpeg.__init__.__defaults__[1:])'
      done
    ''
    # uv-build in nixpkgs is now at 0.8.0, which otherwise breaks the constraint set by the package.
    + ''
      substituteInPlace pyproject.toml \
        --replace-fail 'requires = ["uv_build>=0.7.9,<0.8.0"]' 'requires = ["uv_build>=0.7.9,<0.9.0"]'
    '';

  pythonImportsCheck = [ "ffmpy" ];