diff options
Diffstat (limited to 'pkgs/applications/audio/friture/default.nix')
-rw-r--r-- | pkgs/applications/audio/friture/default.nix | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/pkgs/applications/audio/friture/default.nix b/pkgs/applications/audio/friture/default.nix index 7d891834ed7..7918ea17891 100644 --- a/pkgs/applications/audio/friture/default.nix +++ b/pkgs/applications/audio/friture/default.nix @@ -1,16 +1,16 @@ -{ lib, fetchFromGitHub, python3Packages, wrapQtAppsHook }: +{ lib, fetchFromGitHub, fetchpatch, python3Packages, wrapQtAppsHook }: let py = python3Packages; in py.buildPythonApplication rec { pname = "friture"; - version = "0.47"; + version = "0.48"; src = fetchFromGitHub { owner = "tlecomte"; repo = pname; rev = "v${version}"; - sha256 = "1qcsvmgdz9hhv5gaa918147wvng6manc4iq8ci6yr761ljqrgwjx"; + sha256 = "sha256-oOH58jD49xAeSuP+l6tYUpwkYsnfeSGTt8x4DFzTY6g="; }; nativeBuildInputs = (with py; [ numpy cython scipy ]) ++ @@ -29,9 +29,19 @@ in py.buildPythonApplication rec { ]; patches = [ - ./unlock_constraints.patch + # Backported fix that resolves an issue with setuptools packaging + (fetchpatch { + name = "fix-setuptools-packaging.patch"; + url = "https://github.com/tlecomte/friture/commit/ea7210dae883edf17de8fec82f9428b18ee138b6.diff"; + sha256 = "sha256-Kv/vmC8kcqfOgfIPQyZN46sbV6bezhq6pyj8bvke6s8="; + }) ]; + postPatch = '' + # Remove version constraints from Python dependencies in setup.py + sed -i -E "s/\"([A-Za-z0-9]+)(=|>|<)=[0-9\.]+\"/\"\1\"/g" setup.py + ''; + preFixup = '' makeWrapperArgs+=("''${qtWrapperArgs[@]}") ''; @@ -53,6 +63,6 @@ in py.buildPythonApplication rec { homepage = "https://friture.org/"; license = licenses.gpl3; platforms = platforms.linux; # fails on Darwin - maintainers = [ maintainers.laikq ]; + maintainers = with maintainers; [ laikq alyaeanyx ]; }; } |