friture: remove python3Packages.pyrr dep, cleanup

This commit is contained in:
Aliaksandr
2026-02-18 04:44:07 +02:00
parent 9f65f6a2a3
commit d84a81458b
+10 -4
View File
@@ -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