Something went wrong. Try again.
lol
Something went wrong. Try again.
980 B · 43 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344{ 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 = { description = "Library for manipulating pronunciations using the International Phonetic Alphabet (IPA)"; mainProgram = "gruut-ipa"; homepage = "https://github.com/rhasspy/gruut-ipa"; license = lib.licenses.mit; teams = [ lib.teams.tts ]; };}