diff --git a/pkgs/development/python-modules/ttstokenizer/default.nix b/pkgs/development/python-modules/ttstokenizer/default.nix new file mode 100644 index 000000000000..554e0341fb16 --- /dev/null +++ b/pkgs/development/python-modules/ttstokenizer/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchPypi +, anyascii +, inflect +, nltk +, numpy +}: + +buildPythonPackage rec { + pname = "ttstokenizer"; + version = "1.0.0"; + format = "setuptools"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-HtDXDKlZ3jpwIgb5DvaqurEkRe8TRJ2xqKl2IKElnKU="; + }; + + propagatedBuildInputs = [ + anyascii + inflect + nltk + numpy + ]; + + pythonImportsCheck = [ "ttstokenizer" ]; + + # no tests + doCheck = false; + + meta = with lib; { + description = "Tokenizer for Text to Speech (TTS) models"; + homepage = "https://pypi.org/project/ttstokenizer"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ happysalada ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4f3f91bd2500..5c498ff9519a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12863,6 +12863,8 @@ self: super: with self; { ttp-templates = callPackage ../development/python-modules/ttp-templates { }; + ttstokenizer = callPackage ../development/python-modules/ttstokenizer { }; + tubes = callPackage ../development/python-modules/tubes { }; tunigo = callPackage ../development/python-modules/tunigo { };