python312Packages.translation-finder: 2.16 -> 2.19
Changelog: https://github.com/WeblateOrg/translation-finder/blob/2.19/CHANGES.rst
This commit is contained in:
@@ -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 = [
|
||||
|
||||
@@ -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'}
|
||||
],
|
||||
)
|
||||
Reference in New Issue
Block a user