35 buildPythonPackage rec {
38 format = "setuptools";
40 src = fetchFromGitHub {
43 rev = "refs/tags/v${version}";
44 hash = "sha256-DD7gnvH9T2R6E19+exWE7Si+XEpfh0Iy5FYbycjgzgM=";
48 substituteInPlace requirements.txt \
49 --replace "gruut_lang_en~=2.0.0" "gruut_lang_en" \
50 --replace "jsonlines~=1.2.0" "jsonlines" \
51 --replace "networkx>=2.5.0,<3.0.0" "networkx"
54 propagatedBuildInputs = [
62 ] ++ (map (lang: callPackage ./language-pack.nix {
63 inherit lang version format src;
66 nativeCheckInputs = [ glibcLocales pytestCheckHook ];
69 # https://github.com/rhasspy/gruut/issues/25
70 "test_lexicon_external"
72 # requires mishkal library
79 export LC_ALL=en_US.utf-8
82 pythonImportsCheck = [
87 description = "A tokenizer, text cleaner, and phonemizer for many human languages";
88 mainProgram = "gruut";
89 homepage = "https://github.com/rhasspy/gruut";
90 license = licenses.mit;
91 maintainers = teams.tts.members;