94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
40 lines
951 B
Nix
40 lines
951 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, substituteAll
|
|
, espeak-ng
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "espeak-phonemizer";
|
|
version = "1.3.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rhasspy";
|
|
repo = "espeak-phonemizer";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-F+A2ge9YAib6IjDW3RNi7QqKnh1RGy2mlPFEB+OLCJU=";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./cdll.patch;
|
|
libespeak_ng = "${lib.getLib espeak-ng}/lib/libespeak-ng.so";
|
|
})
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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;
|
|
};
|
|
}
|