about summary refs log tree commit diff
path: root/pkgs/development/python-modules/piper-phonemize/default.nix
blob: cd09567a61e360404ac8ca39911083daa3c5608e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ buildPythonPackage
, onnxruntime-native
, piper-phonemize-native
, pybind11
, setuptools
}:

buildPythonPackage {
  inherit (piper-phonemize-native) pname version src;
  format = "pyproject";

  nativeBuildInputs = [
    pybind11
    setuptools
  ];

  buildInputs = [
    onnxruntime-native
    piper-phonemize-native
    piper-phonemize-native.espeak-ng
  ];

  pythonImportsCheck = [
    "piper_phonemize"
  ];

  # no tests
  doCheck = false;

  meta = {
    description = "Phonemization libary used by Piper text to speech system";
    inherit (piper-phonemize-native.meta) homepage license maintainers;
  };
}