diff options
Diffstat (limited to 'pkgs/development/python-modules/piper-train/default.nix')
-rw-r--r-- | pkgs/development/python-modules/piper-train/default.nix | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/pkgs/development/python-modules/piper-train/default.nix b/pkgs/development/python-modules/piper-train/default.nix deleted file mode 100644 index 5cf8cdea10df6..0000000000000 --- a/pkgs/development/python-modules/piper-train/default.nix +++ /dev/null @@ -1,60 +0,0 @@ -{ buildPythonPackage -, piper-tts - -# build -, cython -, python - -# propagates -, espeak-phonemizer -, librosa -, numpy -, onnxruntime -, pytorch-lightning -, torch -}: - -buildPythonPackage { - inherit (piper-tts) version src meta; - - pname = "piper-train"; - format = "setuptools"; - - sourceRoot = "source/src/python"; - - nativeBuildInputs = [ - 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 = '' - 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 = [ - espeak-phonemizer - librosa - numpy - onnxruntime - pytorch-lightning - torch - ]; - - pythonImportsCheck = [ - "piper_train" - ]; - - doCheck = false; # no tests -} |