Loading pkgs/development/python-modules/translation-finder/default.nix +7 −7 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchPypi, fetchFromGitHub, setuptools, charset-normalizer, ruamel-yaml, Loading @@ -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 = [ Loading pkgs/development/python-modules/translation-finder/fix_tests.patchdeleted 100644 → 0 +0 −25 Original line number Diff line number Diff line 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'} ], ) Loading
pkgs/development/python-modules/translation-finder/default.nix +7 −7 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchPypi, fetchFromGitHub, setuptools, charset-normalizer, ruamel-yaml, Loading @@ -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 = [ Loading
pkgs/development/python-modules/translation-finder/fix_tests.patchdeleted 100644 → 0 +0 −25 Original line number Diff line number Diff line 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'} ], )