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