tts: 0.0.9 -> 0.0.11
Migrate to new upstream after Mozilla dropped the project.
This commit is contained in:
parent
9eee6b3daf
commit
03b236db05
@ -12,19 +12,18 @@
|
|||||||
# For now, for deployment check the systemd unit in the pull request:
|
# For now, for deployment check the systemd unit in the pull request:
|
||||||
# https://github.com/NixOS/nixpkgs/pull/103851#issue-521121136
|
# https://github.com/NixOS/nixpkgs/pull/103851#issue-521121136
|
||||||
#
|
#
|
||||||
|
# Check the latest release for compatible models:
|
||||||
|
# https://github.com/coqui-ai/TTS/releases/tag/v0.0.11
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "tts";
|
pname = "tts";
|
||||||
# until https://github.com/mozilla/TTS/issues/424 is resolved
|
version = "0.0.11";
|
||||||
# we treat released models as released versions:
|
|
||||||
# https://github.com/mozilla/TTS/wiki/Released-Models
|
|
||||||
version = "0.0.9";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mozilla";
|
owner = "coqui-ai";
|
||||||
repo = "TTS";
|
repo = "TTS";
|
||||||
rev = "df5899daf4ba4ec89544edf94f9c2e105c544461";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-lklG8DqG04LKJY93z2axeYhW8gtpbRG41o9ow2gJjuA=";
|
sha256 = "0kk9bgiw2x5ybwz0v3zrfaxajl3lnccc9xmrwc295n2rfkmwxsis";
|
||||||
};
|
};
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
@ -37,6 +36,8 @@ python3Packages.buildPythonApplication rec {
|
|||||||
sed -i -e 's!unidecode==[^"]*!unidecode!' requirements.txt setup.py
|
sed -i -e 's!unidecode==[^"]*!unidecode!' requirements.txt setup.py
|
||||||
sed -i -e 's!bokeh==[^"]*!bokeh!' requirements.txt setup.py
|
sed -i -e 's!bokeh==[^"]*!bokeh!' requirements.txt setup.py
|
||||||
sed -i -e 's!numba==[^"]*!numba!' requirements.txt setup.py
|
sed -i -e 's!numba==[^"]*!numba!' requirements.txt setup.py
|
||||||
|
sed -i -e 's!numpy==[^"]*!numpy!' requirements.txt setup.py
|
||||||
|
sed -i -e 's!umap-learn==[^"]*!umap-learn!' requirements.txt setup.py
|
||||||
# Not required for building/installation but for their development/ci workflow
|
# Not required for building/installation but for their development/ci workflow
|
||||||
sed -i -e '/pylint/d' requirements.txt
|
sed -i -e '/pylint/d' requirements.txt
|
||||||
sed -i -e '/cardboardlint/d' requirements.txt setup.py
|
sed -i -e '/cardboardlint/d' requirements.txt setup.py
|
||||||
@ -45,24 +46,25 @@ python3Packages.buildPythonApplication rec {
|
|||||||
nativeBuildInputs = [ python3Packages.cython ];
|
nativeBuildInputs = [ python3Packages.cython ];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
matplotlib
|
|
||||||
scipy
|
|
||||||
pytorch
|
|
||||||
flask
|
|
||||||
attrdict
|
attrdict
|
||||||
bokeh
|
bokeh
|
||||||
soundfile
|
flask
|
||||||
tqdm
|
|
||||||
librosa
|
|
||||||
unidecode
|
|
||||||
umap-learn
|
|
||||||
phonemizer
|
|
||||||
tensorboardx
|
|
||||||
fuzzywuzzy
|
fuzzywuzzy
|
||||||
inflect
|
|
||||||
gdown
|
gdown
|
||||||
|
inflect
|
||||||
|
jieba
|
||||||
|
librosa
|
||||||
|
matplotlib
|
||||||
|
phonemizer
|
||||||
|
pypinyin
|
||||||
pysbd
|
pysbd
|
||||||
pyworld
|
pytorch
|
||||||
|
scipy
|
||||||
|
soundfile
|
||||||
|
tensorboardx
|
||||||
|
tqdm
|
||||||
|
umap-learn
|
||||||
|
unidecode
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
@ -92,16 +94,17 @@ python3Packages.buildPythonApplication rec {
|
|||||||
mv TTS{,.old}
|
mv TTS{,.old}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pytestFlagsArray = [
|
disabledTestPaths = [
|
||||||
# requires tensorflow
|
# requires tensorflow
|
||||||
"--ignore=tests/test_tacotron2_tf_model.py"
|
"tests/test_tacotron2_tf_model.py"
|
||||||
"--ignore=tests/test_vocoder_tf_melgan_generator.py"
|
"tests/test_vocoder_tf_melgan_generator.py"
|
||||||
"--ignore=tests/test_vocoder_tf_pqmf.py"
|
"tests/test_vocoder_tf_pqmf.py"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/mozilla/TTS";
|
homepage = "https://github.com/coqui-ai/TTS";
|
||||||
description = "Deep learning for Text to Speech";
|
changelog = "https://github.com/coqui-ai/TTS/releases/tag/v${version}";
|
||||||
|
description = "Deep learning toolkit for Text-to-Speech, battle-tested in research and production";
|
||||||
license = licenses.mpl20;
|
license = licenses.mpl20;
|
||||||
maintainers = with maintainers; [ hexa mic92 ];
|
maintainers = with maintainers; [ hexa mic92 ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user