From e0b6268a795ac81df2b4777593f8a8f9cbd4e8fb Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 8 Mar 2021 01:04:51 +0100 Subject: [PATCH] python3Packages.phonemizer: update patch to fix tests --- .../phonemizer/backend-paths.patch | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/phonemizer/backend-paths.patch b/pkgs/development/python-modules/phonemizer/backend-paths.patch index 1734addb0ef1..5f828aaaae13 100644 --- a/pkgs/development/python-modules/phonemizer/backend-paths.patch +++ b/pkgs/development/python-modules/phonemizer/backend-paths.patch @@ -1,8 +1,8 @@ diff --git a/phonemizer/backend/espeak.py b/phonemizer/backend/espeak.py -index 387c11c..ceb5e7e 100644 +index b4712bf..5628fd5 100644 --- a/phonemizer/backend/espeak.py +++ b/phonemizer/backend/espeak.py -@@ -81,10 +81,7 @@ class BaseEspeakBackend(BaseBackend): +@@ -82,10 +82,7 @@ class BaseEspeakBackend(BaseBackend): if _ESPEAK_DEFAULT_PATH: return _ESPEAK_DEFAULT_PATH @@ -15,10 +15,10 @@ index 387c11c..ceb5e7e 100644 @classmethod def is_available(cls): diff --git a/phonemizer/backend/festival.py b/phonemizer/backend/festival.py -index b5bc56d..0833160 100644 +index 3037be5..684ffff 100644 --- a/phonemizer/backend/festival.py +++ b/phonemizer/backend/festival.py -@@ -78,7 +78,7 @@ class FestivalBackend(BaseBackend): +@@ -80,7 +80,7 @@ class FestivalBackend(BaseBackend): if _FESTIVAL_DEFAULT_PATH: return _FESTIVAL_DEFAULT_PATH @@ -27,3 +27,16 @@ index b5bc56d..0833160 100644 @classmethod def is_available(cls): +diff --git a/test/test_punctuation.py b/test/test_punctuation.py +index 6ed642a..08060df 100644 +--- a/test/test_punctuation.py ++++ b/test/test_punctuation.py +@@ -28,7 +28,7 @@ ESPEAK_143 = (EspeakBackend.version(as_tuple=True) >= (1, 49, 3)) + ESPEAK_150 = (EspeakBackend.version(as_tuple=True) >= (1, 50)) + + # True if we are using festival>=2.5 +-FESTIVAL_25 = (FestivalBackend.version(as_tuple=True) >= (2, 5)) ++FESTIVAL_25 = False + + + @pytest.mark.parametrize(