lol

python312Packages.translation-finder: 2.16 -> 2.19

Changelog: https://github.com/WeblateOrg/translation-finder/blob/2.19/CHANGES.rst

+7 -32
+7 -7
pkgs/development/python-modules/translation-finder/default.nix
··· 1 1 { 2 2 lib, 3 3 buildPythonPackage, 4 - fetchPypi, 4 + fetchFromGitHub, 5 5 setuptools, 6 6 charset-normalizer, 7 7 ruamel-yaml, ··· 11 11 12 12 buildPythonPackage rec { 13 13 pname = "translation-finder"; 14 - version = "2.16"; 14 + version = "2.19"; 15 15 16 16 pyproject = true; 17 17 18 - src = fetchPypi { 19 - inherit pname version; 20 - hash = "sha256-a1C+j4Zo0DJ9BWDn5Zsu4zAftcUixfPktAWdqiFJpiU="; 18 + src = fetchFromGitHub { 19 + owner = "WeblateOrg"; 20 + repo = "translation-finder"; 21 + tag = version; 22 + hash = "sha256-Hc1KxmzlFqCLHSAgFF8cgxH0dTdUnBV/2T2ZkfzVvSw="; 21 23 }; 22 - 23 - patches = [ ./fix_tests.patch ]; 24 24 25 25 build-system = [ setuptools ]; 26 26
-25
pkgs/development/python-modules/translation-finder/fix_tests.patch
··· 1 - diff --git a/translation_finder/test_api.py b/translation_finder/test_api.py 2 - index c3b020c..9be070d 100644 3 - --- a/translation_finder/test_api.py 4 - +++ b/translation_finder/test_api.py 5 - @@ -173,6 +173,7 @@ class APITest(DiscoveryTestCase): 6 - "filemask": "json/gotext-*.json", 7 - "template": "json/gotext-en.json", 8 - }, 9 - + {'filemask': 'linked/*.po', 'new_base': 'linked/messages.pot', 'file_format': 'po'}, 10 - ], 11 - ) 12 - 13 - diff --git a/translation_finder/test_discovery.py b/translation_finder/test_discovery.py 14 - index 1a0ca40..14caa4f 100644 15 - --- a/translation_finder/test_discovery.py 16 - +++ b/translation_finder/test_discovery.py 17 - @@ -945,6 +945,9 @@ class JSONDiscoveryTest(DiscoveryTestCase): 18 - "file_format": "json-nested", 19 - "template": "src/app/[locale]/_translations/en.json", 20 - }, 21 - + {'filemask': '*/app/[locale]/_translations/cs.json', 'file_format': 'json-nested'}, 22 - + {'filemask': '*/app/[locale]/_translations/de.json', 'file_format': 'json-nested'}, 23 - + {'filemask': '*/app/[locale]/_translations/en.json', 'file_format': 'json-nested'} 24 - ], 25 - )