[Backport release-24.11] python312Packages.khanaa: fix build (#356294)

This commit is contained in:
Aleksana 2024-11-17 00:17:10 +08:00 committed by GitHub
commit e999025b64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff --git a/tests/test_thai_spelling.py b/tests/test_thai_spelling.py
index 88ec07b..fb6cd01 100644
--- a/tests/test_thai_spelling.py
+++ b/tests/test_thai_spelling.py
@@ -164,6 +164,7 @@ class TestSpellWord(unittest.TestCase):
for case in GENERAL:
self.assertEqual(spell.spell_out(**case[0]), case[1])
+ @unittest.skip("deprecated spell_out function is broken for test")
def test_onset_tone(self):
spell = SpellWord()
for case in ONSET_TONE:

View File

@ -26,6 +26,10 @@ buildPythonPackage rec {
build-system = [ setuptools ];
patches = [
./001-skip-broken-test.patch
];
nativeCheckInputs = [ unittestCheckHook ];
unittestFlagsArray = [