Unverified Commit d3ddbc11 authored by natsukium's avatar natsukium
Browse files

python312Packages.translation-finder: 2.16 -> 2.19

parent 09277b1c
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
{
  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 = [
+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'}
             ],
         )