piper-train: move to top-level and mark broken
Requires torch<2, which is difficult to provide in an override, so I'd rather wait until they catch up.
This commit is contained in:
parent
1fd038e11b
commit
24c0ba0ffc
4 changed files with 19 additions and 30 deletions
|
@ -1,39 +1,26 @@
|
||||||
{ buildPythonPackage
|
{ piper-tts
|
||||||
, piper-tts
|
, python3
|
||||||
|
|
||||||
# build
|
|
||||||
, cython
|
|
||||||
, python
|
|
||||||
|
|
||||||
# propagates
|
|
||||||
, espeak-phonemizer
|
|
||||||
, librosa
|
|
||||||
, numpy
|
|
||||||
, onnxruntime
|
|
||||||
, piper-phonemize
|
|
||||||
, pytorch-lightning
|
|
||||||
, torch
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage {
|
let
|
||||||
inherit (piper-tts) version src meta;
|
python = python3.override {
|
||||||
|
packageOverrides = self: super: {
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
|
||||||
|
python.pkgs.buildPythonPackage {
|
||||||
|
inherit (piper-tts) version src;
|
||||||
|
|
||||||
pname = "piper-train";
|
pname = "piper-train";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
sourceRoot = "source/src/python";
|
sourceRoot = "source/src/python";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = with python.pkgs; [
|
||||||
cython
|
cython
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace requirements.txt \
|
|
||||||
--replace "onnxruntime~=1.11.0" "onnxruntime" \
|
|
||||||
--replace "pytorch-lightning~=1.7.0" "pytorch-lightning" \
|
|
||||||
--replace "torch~=1.11.0" "torch"
|
|
||||||
'';
|
|
||||||
|
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
make -C piper_train/vits/monotonic_align
|
make -C piper_train/vits/monotonic_align
|
||||||
'';
|
'';
|
||||||
|
@ -44,7 +31,7 @@ buildPythonPackage {
|
||||||
cp -v ./piper_train/vits/monotonic_align/piper_train/vits/monotonic_align/core.*.so $MONOTONIC_ALIGN/
|
cp -v ./piper_train/vits/monotonic_align/piper_train/vits/monotonic_align/core.*.so $MONOTONIC_ALIGN/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = with python.pkgs; [
|
||||||
espeak-phonemizer
|
espeak-phonemizer
|
||||||
librosa
|
librosa
|
||||||
numpy
|
numpy
|
||||||
|
@ -59,4 +46,9 @@ buildPythonPackage {
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = false; # no tests
|
doCheck = false; # no tests
|
||||||
|
|
||||||
|
meta = piper-tts.meta // {
|
||||||
|
# requires torch<2, pytorch-lightning~=1.7
|
||||||
|
broken = true;
|
||||||
|
};
|
||||||
}
|
}
|
|
@ -11709,7 +11709,7 @@ with pkgs;
|
||||||
pim6sd = callPackage ../servers/pim6sd { };
|
pim6sd = callPackage ../servers/pim6sd { };
|
||||||
|
|
||||||
piper-phonemize = callPackage ../development/libraries/piper-phonemize { };
|
piper-phonemize = callPackage ../development/libraries/piper-phonemize { };
|
||||||
piper-train = with python3Packages; toPythonApplication piper-train;
|
piper-train = callPackage ../tools/audio/piper/train.nix { };
|
||||||
piper-tts = callPackage ../tools/audio/piper { };
|
piper-tts = callPackage ../tools/audio/piper { };
|
||||||
|
|
||||||
phosh = callPackage ../applications/window-managers/phosh { };
|
phosh = callPackage ../applications/window-managers/phosh { };
|
||||||
|
|
|
@ -184,7 +184,6 @@ mapAliases ({
|
||||||
jupyter_server = jupyter-server; # added 2023-01-05
|
jupyter_server = jupyter-server; # added 2023-01-05
|
||||||
Kajiki = kajiki; # added 2023-02-19
|
Kajiki = kajiki; # added 2023-02-19
|
||||||
Keras = keras; # added 2021-11-25
|
Keras = keras; # added 2021-11-25
|
||||||
larynx-train = piper-train; # added 2023-06-09
|
|
||||||
ldap = python-ldap; # added 2022-09-16
|
ldap = python-ldap; # added 2022-09-16
|
||||||
lammps-cython = throw "lammps-cython no longer builds and is unmaintained"; # added 2021-07-04
|
lammps-cython = throw "lammps-cython no longer builds and is unmaintained"; # added 2021-07-04
|
||||||
logilab_astng = throw "logilab-astng has not been released since 2013 and is unmaintained"; # added 2022-11-29
|
logilab_astng = throw "logilab-astng has not been released since 2013 and is unmaintained"; # added 2022-11-29
|
||||||
|
|
|
@ -7970,8 +7970,6 @@ self: super: with self; {
|
||||||
piper-phonemize-native = pkgs.piper-phonemize;
|
piper-phonemize-native = pkgs.piper-phonemize;
|
||||||
};
|
};
|
||||||
|
|
||||||
piper-train = callPackage ../development/python-modules/piper-train { };
|
|
||||||
|
|
||||||
pip-api = callPackage ../development/python-modules/pip-api { };
|
pip-api = callPackage ../development/python-modules/pip-api { };
|
||||||
|
|
||||||
pip-tools = callPackage ../development/python-modules/pip-tools { };
|
pip-tools = callPackage ../development/python-modules/pip-tools { };
|
||||||
|
|
Loading…
Reference in a new issue