gruut-ipa: init at 0.9.2

This commit is contained in:
Martin Weinelt 2021-07-03 20:20:09 +02:00
parent 70fda407f1
commit 41490c2bfb
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
3 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pkgs
, python
}:
buildPythonPackage rec {
pname = "gruut-ipa";
version = "0.9.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "rhasspy";
repo = pname;
rev = "df74f7dff562d868ad8088b7251f9e7206271d37";
sha256 = "0b2znvjngffxc0mlmqmcai8l22ff09kc39bj6f0lkjw735vclnzh";
};
postPatch = ''
patchShebangs bin/speak-ipa
substituteInPlace bin/speak-ipa \
--replace '${"\${src_dir}:"}' "$out/lib/${python.libPrefix}/site-packages:" \
--replace "do espeak" "do ${pkgs.espeak}/bin/espeak"
'';
postInstall = ''
install -m0755 bin/speak-ipa $out/bin/speak-ipa
'';
checkPhase = ''
runHook preCheck
${python.interpreter} -m unittest discover
runHook postCheck
'';
pythonImportsCheck = [
"gruut_ipa"
];
meta = with lib; {
description = "Library for manipulating pronunciations using the International Phonetic Alphabet (IPA)";
homepage = "https://github.com/rhasspy/gruut-ipa";
license = licenses.mit;
maintainers = teams.tts.members;
};
}

View File

@ -5562,6 +5562,8 @@ in
stdenv = stdenv_32bit;
};
gruut-ipa = with python3.pkgs; toPythonApplication gruut-ipa;
gx = callPackage ../tools/package-management/gx { };
gx-go = callPackage ../tools/package-management/gx/go { };

View File

@ -3131,6 +3131,8 @@ in {
grpcio-tools = callPackage ../development/python-modules/grpcio-tools { };
gruut-ipa = callPackage ../development/python-modules/gruut-ipa { };
gsd = callPackage ../development/python-modules/gsd { };
gspread = callPackage ../development/python-modules/gspread { };