diff --git a/pkgs/applications/audio/friture/default.nix b/pkgs/applications/audio/friture/default.nix index 1c5d292c0aec..7918ea178917 100644 --- a/pkgs/applications/audio/friture/default.nix +++ b/pkgs/applications/audio/friture/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitHub, python3Packages, wrapQtAppsHook }: +{ lib, fetchFromGitHub, fetchpatch, python3Packages, wrapQtAppsHook }: let py = python3Packages; @@ -28,6 +28,15 @@ in py.buildPythonApplication rec { rtmixer ]; + patches = [ + # 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