diff --git a/pkgs/development/python-modules/translation-finder/default.nix b/pkgs/development/python-modules/translation-finder/default.nix index 1341054331d8..bb9df2e38cf5 100644 --- a/pkgs/development/python-modules/translation-finder/default.nix +++ b/pkgs/development/python-modules/translation-finder/default.nix @@ -1,7 +1,7 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, setuptools, charset-normalizer, ruamel-yaml, @@ -11,17 +11,17 @@ buildPythonPackage rec { pname = "translation-finder"; - version = "2.16"; + version = "2.19"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-a1C+j4Zo0DJ9BWDn5Zsu4zAftcUixfPktAWdqiFJpiU="; + src = fetchFromGitHub { + owner = "WeblateOrg"; + repo = "translation-finder"; + tag = version; + hash = "sha256-Hc1KxmzlFqCLHSAgFF8cgxH0dTdUnBV/2T2ZkfzVvSw="; }; - patches = [ ./fix_tests.patch ]; - build-system = [ setuptools ]; dependencies = [ diff --git a/pkgs/development/python-modules/translation-finder/fix_tests.patch b/pkgs/development/python-modules/translation-finder/fix_tests.patch deleted file mode 100644 index caf748a77130..000000000000 --- a/pkgs/development/python-modules/translation-finder/fix_tests.patch +++ /dev/null @@ -1,25 +0,0 @@ -diff --git a/translation_finder/test_api.py b/translation_finder/test_api.py -index c3b020c..9be070d 100644 ---- a/translation_finder/test_api.py -+++ b/translation_finder/test_api.py -@@ -173,6 +173,7 @@ class APITest(DiscoveryTestCase): - "filemask": "json/gotext-*.json", - "template": "json/gotext-en.json", - }, -+ {'filemask': 'linked/*.po', 'new_base': 'linked/messages.pot', 'file_format': 'po'}, - ], - ) - -diff --git a/translation_finder/test_discovery.py b/translation_finder/test_discovery.py -index 1a0ca40..14caa4f 100644 ---- a/translation_finder/test_discovery.py -+++ b/translation_finder/test_discovery.py -@@ -945,6 +945,9 @@ class JSONDiscoveryTest(DiscoveryTestCase): - "file_format": "json-nested", - "template": "src/app/[locale]/_translations/en.json", - }, -+ {'filemask': '*/app/[locale]/_translations/cs.json', 'file_format': 'json-nested'}, -+ {'filemask': '*/app/[locale]/_translations/de.json', 'file_format': 'json-nested'}, -+ {'filemask': '*/app/[locale]/_translations/en.json', 'file_format': 'json-nested'} - ], - )