From 751ce748bd1ebac94442dfeaa8bc3f100d73a9f6 Mon Sep 17 00:00:00 2001 From: alyaeanyx Date: Fri, 1 Oct 2021 22:24:16 +0200 Subject: [PATCH] friture: backport fix for setuptools packaging --- pkgs/applications/audio/friture/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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