567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
40 lines
967 B
Nix
40 lines
967 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
replaceVars,
|
|
espeak-ng,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "espeak-phonemizer";
|
|
version = "1.3.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rhasspy";
|
|
repo = "espeak-phonemizer";
|
|
tag = "v${version}";
|
|
hash = "sha256-K0s24mzXUqG0Au40jjGbpKNAznBkMHQzfh2/CDBN0F8=";
|
|
};
|
|
|
|
patches = [
|
|
(replaceVars ./cdll.patch {
|
|
libespeak_ng = "${lib.getLib espeak-ng}/lib/libespeak-ng.so";
|
|
})
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/rhasspy/espeak-phonemizer/releases/tag/v${version}";
|
|
description = "Uses ctypes and libespeak-ng to transform test into IPA phonemes";
|
|
mainProgram = "espeak-phonemizer";
|
|
homepage = "https://github.com/rhasspy/espeak-phonemizer";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ hexa ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|