0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
42 lines
1,003 B
Nix
42 lines
1,003 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, substituteAll
|
|
, glibc
|
|
, espeak-ng
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "espeak-phonemizer";
|
|
version = "1.1.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rhasspy";
|
|
repo = "espeak-phonemizer";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-qnJtS5iIARdg+umolzLHT3/nLon9syjxfTnMWHOmYPU=";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./cdll.patch;
|
|
libc = "${lib.getLib glibc}/lib/libc.so.6";
|
|
libespeak_ng = "${lib.getLib espeak-ng}/lib/libespeak-ng.so";
|
|
})
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/rhasspy/espeak-phonemizer/releases/tag/v${version}";
|
|
description = "Uses ctypes and libespeak-ng to transform test into IPA phonemes";
|
|
homepage = "https://github.com/rhasspy/espeak-phonemizer";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|