Unverified Commit d84a8145 authored by Aliaksandr's avatar Aliaksandr
Browse files

friture: remove python3Packages.pyrr dep, cleanup

parent 9f65f6a2
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -18,8 +18,9 @@ python3Packages.buildPythonApplication (finalAttrs: {
  };

  postPatch = ''
    sed -i -e 's/==.*"/"/' -e '/packages=\[/a "friture.playback",' pyproject.toml
    sed -i -e 's/tostring/tobytes/' friture/spectrogram_image.py
    substituteInPlace pyproject.toml \
      --replace-fail "numpy==2.3.2" "numpy" \
      --replace-fail "Cython==3.1.3" "Cython"
  '';

  nativeBuildInputs =
@@ -31,6 +32,12 @@ python3Packages.buildPythonApplication (finalAttrs: {
    ])
    ++ (with qt5; [ wrapQtAppsHook ]);

  # Very strict versions
  pythonRelaxDeps = true;

  # Not actually used, dropped from nixpkgs
  pythonRemoveDeps = [ "pyrr" ];

  buildInputs = with qt5; [ qtquickcontrols2 ];

  propagatedBuildInputs = with python3Packages; [
@@ -43,7 +50,6 @@ python3Packages.buildPythonApplication (finalAttrs: {
    numpy
    pyqt5
    appdirs
    pyrr
    rtmixer
  ];

@@ -52,7 +58,7 @@ python3Packages.buildPythonApplication (finalAttrs: {
  '';

  postInstall = ''
    substituteInPlace $out/share/applications/friture.desktop --replace usr/bin/friture friture
    substituteInPlace $out/share/applications/friture.desktop --replace-fail usr/bin/friture friture

    for size in 16 32 128 256 512
    do