Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
982 B
Nix
44 lines
982 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
espeak,
|
|
numpy,
|
|
python,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gruut-ipa";
|
|
version = "0.13.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rhasspy";
|
|
repo = "gruut-ipa";
|
|
rev = "v${version}";
|
|
hash = "sha256-Q2UKELoG8OaAPxIrZNCpXgeWZ2fCzb3g3SOVzCm/gg0=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs bin/*
|
|
substituteInPlace bin/speak-ipa \
|
|
--replace '${"\${src_dir}:"}' "$out/${python.sitePackages}:" \
|
|
--replace "do espeak" "do ${espeak}/bin/espeak"
|
|
'';
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "gruut_ipa" ];
|
|
|
|
meta = with lib; {
|
|
description = "Library for manipulating pronunciations using the International Phonetic Alphabet (IPA)";
|
|
mainProgram = "gruut-ipa";
|
|
homepage = "https://github.com/rhasspy/gruut-ipa";
|
|
license = licenses.mit;
|
|
teams = [ teams.tts ];
|
|
};
|
|
}
|