piper-train: drop

This is now an optional part of the main piper-tts pacakge.
This commit is contained in:
Martin Weinelt
2025-09-15 18:22:24 +02:00
parent 676ed7c17b
commit a30a92bac1
2 changed files with 1 additions and 52 deletions
-52
View File
@@ -1,52 +0,0 @@
{
piper-tts,
python3,
}:
let
python = python3;
in
python.pkgs.buildPythonPackage {
inherit (piper-tts) version src;
pname = "piper-train";
format = "setuptools";
sourceRoot = "${piper-tts.src.name}/src/python";
nativeBuildInputs = with python.pkgs; [
cython
];
postBuild = ''
make -C piper_train/vits/monotonic_align
'';
postInstall = ''
export MONOTONIC_ALIGN=$out/${python.sitePackages}/piper_train/vits/monotonic_align/monotonic_align
mkdir -p $MONOTONIC_ALIGN
cp -v ./piper_train/vits/monotonic_align/piper_train/vits/monotonic_align/core.*.so $MONOTONIC_ALIGN/
'';
propagatedBuildInputs = with python.pkgs; [
espeak-phonemizer
librosa
numpy
onnxruntime
piper-phonemize
pytorch-lightning
torch
];
pythonImportsCheck = [
"piper_train"
];
doCheck = false; # no tests
meta = piper-tts.meta // {
# requires torch<2, pytorch-lightning~=1.7
broken = true;
};
}
+1
View File
@@ -2006,6 +2006,7 @@ mapAliases {
];
}; # added 2024-01-15
pinentry_qt5 = throw "'pinentry_qt5' has been renamed to/replaced by 'pinentry-qt'"; # Converted to throw 2024-10-17
piper-train = throw "piper-train is now part of the piper package using the `withTrain` override"; # Added 2025-09-03
pivx = throw "pivx has been removed as it was marked as broken"; # Added 2024-07-15
pivxd = throw "pivxd has been removed as it was marked as broken"; # Added 2024-07-15