Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, substituteAll 5, espeak-ng 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "espeak-phonemizer"; 11 version = "1.3.0"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "rhasspy"; 16 repo = "espeak-phonemizer"; 17 rev = "refs/tags/v${version}"; 18 hash = "sha256-F+A2ge9YAib6IjDW3RNi7QqKnh1RGy2mlPFEB+OLCJU="; 19 }; 20 21 patches = [ 22 (substituteAll { 23 src = ./cdll.patch; 24 libespeak_ng = "${lib.getLib espeak-ng}/lib/libespeak-ng.so"; 25 }) 26 ]; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 ]; 31 32 meta = with lib; { 33 changelog = "https://github.com/rhasspy/espeak-phonemizer/releases/tag/v${version}"; 34 description = "Uses ctypes and libespeak-ng to transform test into IPA phonemes"; 35 homepage = "https://github.com/rhasspy/espeak-phonemizer"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ hexa ]; 38 platforms = platforms.linux; 39 }; 40}