tts: fix patching pyproject constraints
This commit is contained in:
committed by
Jörg Thalheim
parent
b3e16d6e10
commit
217407ff80
@@ -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
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user