diff --git a/pkgs/development/python-modules/espeak-phonemizer/cdll.patch b/pkgs/development/python-modules/espeak-phonemizer/cdll.patch index 3ce5df122d50..48207c3f95d0 100644 --- a/pkgs/development/python-modules/espeak-phonemizer/cdll.patch +++ b/pkgs/development/python-modules/espeak-phonemizer/cdll.patch @@ -1,15 +1,11 @@ diff --git a/espeak_phonemizer/__init__.py b/espeak_phonemizer/__init__.py -index a09472e..730a7f9 100644 +index 44cd943..adeaeba 100644 --- a/espeak_phonemizer/__init__.py +++ b/espeak_phonemizer/__init__.py -@@ -163,14 +163,10 @@ class Phonemizer: +@@ -150,11 +150,7 @@ class Phonemizer: # Already initialized return -- self.libc = ctypes.cdll.LoadLibrary("libc.so.6") -+ self.libc = ctypes.cdll.LoadLibrary("@libc@") - self.libc.open_memstream.restype = ctypes.POINTER(ctypes.c_char) - - try: - self.lib_espeak = ctypes.cdll.LoadLibrary("libespeak-ng.so") - except OSError: diff --git a/pkgs/development/python-modules/espeak-phonemizer/default.nix b/pkgs/development/python-modules/espeak-phonemizer/default.nix index d8c5ba1bb644..2398f421e0da 100644 --- a/pkgs/development/python-modules/espeak-phonemizer/default.nix +++ b/pkgs/development/python-modules/espeak-phonemizer/default.nix @@ -2,27 +2,25 @@ , buildPythonPackage , fetchFromGitHub , substituteAll -, glibc , espeak-ng , pytestCheckHook }: buildPythonPackage rec { pname = "espeak-phonemizer"; - version = "1.1.0"; + version = "1.2.0"; format = "setuptools"; src = fetchFromGitHub { owner = "rhasspy"; repo = "espeak-phonemizer"; rev = "refs/tags/v${version}"; - hash = "sha256-qnJtS5iIARdg+umolzLHT3/nLon9syjxfTnMWHOmYPU="; + hash = "sha256-FiajWpxSDRxTiCj8xGHea4e0voqOvaX6oQYB72FkVbw="; }; patches = [ (substituteAll { src = ./cdll.patch; - libc = "${lib.getLib glibc}/lib/libc.so.6"; libespeak_ng = "${lib.getLib espeak-ng}/lib/libespeak-ng.so"; }) ];