From 217407ff80823443c43db637dcd41461b913bd3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 3 Sep 2023 16:30:37 +0200 Subject: [PATCH] tts: fix patching pyproject constraints --- pkgs/tools/audio/tts/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/audio/tts/default.nix b/pkgs/tools/audio/tts/default.nix index 6b2863213829..860909582354 100644 --- a/pkgs/tools/audio/tts/default.nix +++ b/pkgs/tools/audio/tts/default.nix @@ -41,9 +41,15 @@ python.pkgs.buildPythonApplication rec { in '' sed -r -i \ ${lib.concatStringsSep "\n" (map (package: - ''-e 's/${package}.*[<>=]+.*/${package}/g' \'' + ''-e 's/${package}\s*[<>=]+.+/${package}/g' \'' ) relaxedConstraints)} requirements.txt + + sed -r -i \ + ${lib.concatStringsSep "\n" (map (package: + ''-e 's/${package}\s*[<>=]+[^"]+/${package}/g' \'' + ) relaxedConstraints)} + pyproject.toml # only used for notebooks and visualization sed -r -i -e '/umap-learn/d' requirements.txt '';