Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / phonemizer / backend-paths.patch
blob4b9f1fb4a70b6e36756be12126b90cf4d1ba527f
1 diff --git a/phonemizer/backend/espeak/wrapper.py b/phonemizer/backend/espeak/wrapper.py
2 index 84a79f5..8abcae1 100644
3 --- a/phonemizer/backend/espeak/wrapper.py
4 +++ b/phonemizer/backend/espeak/wrapper.py
5 @@ -143,12 +143,7 @@ class EspeakWrapper:
6 f'is not a readable file')
7 return library.resolve()
9 - library = (
10 - ctypes.util.find_library('espeak-ng') or
11 - ctypes.util.find_library('espeak'))
12 - if not library: # pragma: nocover
13 - raise RuntimeError(
14 - 'failed to find espeak library')
15 + library = '@libespeak@'
16 return library
18 def _fetch_version_and_path(self):