From 5c81b8818709d736b9e52eb45efb237c80f732de Mon Sep 17 00:00:00 2001 From: alyaeanyx Date: Fri, 1 Oct 2021 19:13:20 +0200 Subject: friture: use sed instead of patch --- pkgs/applications/audio/friture/default.nix | 7 ++--- .../audio/friture/unlock_constraints.patch | 30 ---------------------- 2 files changed, 4 insertions(+), 33 deletions(-) delete mode 100644 pkgs/applications/audio/friture/unlock_constraints.patch (limited to 'pkgs/applications') diff --git a/pkgs/applications/audio/friture/default.nix b/pkgs/applications/audio/friture/default.nix index c838f3779553..1c5d292c0aec 100644 --- a/pkgs/applications/audio/friture/default.nix +++ b/pkgs/applications/audio/friture/default.nix @@ -28,9 +28,10 @@ in py.buildPythonApplication rec { rtmixer ]; - patches = [ - ./unlock_constraints.patch - ]; + 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[@]}") diff --git a/pkgs/applications/audio/friture/unlock_constraints.patch b/pkgs/applications/audio/friture/unlock_constraints.patch deleted file mode 100644 index 62ada8404629..000000000000 --- a/pkgs/applications/audio/friture/unlock_constraints.patch +++ /dev/null @@ -1,30 +0,0 @@ -diff --git a/setup.py b/setup.py -index 886fe78..5dccac0 100644 ---- a/setup.py -+++ b/setup.py -@@ -50,17 +50,17 @@ ext_modules = [LateIncludeExtension("friture_extensions.exp_smoothing_conv", - # these will be installed when calling 'pip install friture' - # they are also retrieved by 'requirements.txt' - install_requires = [ -- "sounddevice==0.4.2", -- "rtmixer==0.1.3", -- "docutils==0.17.1", -- "numpy==1.21.1", -- "PyQt5==5.15.4", -- "appdirs==1.4.4", -- "pyrr==0.10.3", -+ "sounddevice<=0.4.2", -+ "rtmixer<=0.1.3", -+ "docutils<=0.17.1", -+ "numpy>=1.21.1", -+ "PyQt5<=5.15.4", -+ "appdirs<=1.4.4", -+ "pyrr<=0.10.3", - ] - - # Cython and numpy are needed when running setup.py, to build extensions --setup_requires=["numpy==1.21.1", "Cython==0.29.24"] -+setup_requires=["numpy>=1.21.1", "Cython<=0.29.24"] - - with open(join(dirname(__file__), 'README.rst')) as f: - long_description = f.read() -- cgit 1.4.1