gruut-ipa: init at 0.9.2
This commit is contained in:
parent
70fda407f1
commit
41490c2bfb
47
pkgs/development/python-modules/gruut-ipa/default.nix
Normal file
47
pkgs/development/python-modules/gruut-ipa/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user