tts: 0.4.2 -> 0.5.0

This commit is contained in:
Martin Weinelt 2022-01-24 20:13:21 +01:00
parent c2262bfb40
commit 7a33dcf460
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -15,23 +15,32 @@
python3.pkgs.buildPythonApplication rec {
pname = "tts";
version = "0.4.2";
version = "0.5.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "coqui-ai";
repo = "TTS";
rev = "v${version}";
sha256 = "sha256-8a68iFbqqKwtZvufu1Vnv6hGHIQ3HU34wjuQsmr1NUA=";
sha256 = "sha256-9fNYNhHS9wqrk2bZnrkkGU1OaDu/16RA8fz+Zj9xsyQ=";
};
postPatch = ''
sed -i requirements.txt \
-e 's!librosa==[^"]*!librosa!' \
-e 's!gruut\[.*\]~=2.0.0!gruut!' \
-e 's!mecab-python3==[^"]*!mecab-python3!' \
-e 's!numba==[^"]*!numba!' \
-e 's!numpy==[^"]*!numpy!' \
-e 's!umap-learn==[^"]*!umap-learn!'
postPatch = let
relaxedConstraints = [
"gruut"
"librosa"
"mecab-python3"
"numba"
"numpy"
"umap-learn"
"torch"
];
in ''
sed -r -i \
${lib.concatStringsSep "\n" (map (package:
''-e 's/${package}.*[<>=]+.*/${package}/g' \''
) relaxedConstraints)}
requirements.txt
'';
nativeBuildInputs = with python3.pkgs; [
@ -43,8 +52,8 @@ python3.pkgs.buildPythonApplication rec {
coqpit
flask
fsspec
gruut
gdown
gruut
inflect
jieba
librosa
@ -54,15 +63,17 @@ python3.pkgs.buildPythonApplication rec {
pandas
pypinyin
pysbd
pytorch
pytorch-bin
pyworld
scipy
soundfile
tensorboardx
tensorflow
torchaudio-bin
tqdm
umap-learn
unidic-lite
webrtcvad
];
postInstall = ''