friture: remove python3Packages.pyrr dep, cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user