tts: fix patching pyproject constraints

This commit is contained in:
Jörg Thalheim
2023-09-09 19:00:58 +02:00
committed by Jörg Thalheim
parent b3e16d6e10
commit 217407ff80
+7 -1
View File
@@ -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
'';