python3Packages.wagtail-localize: 1.13 -> 1.13.1

This commit is contained in:
Sylvain Fankhauser
2026-05-20 21:31:46 +02:00
parent 707f284368
commit 00939eb21c
2 changed files with 24 additions and 5 deletions
@@ -25,14 +25,14 @@
buildPythonPackage rec {
pname = "wagtail-localize";
version = "1.13";
version = "1.13.1";
pyproject = true;
src = fetchFromGitHub {
repo = "wagtail-localize";
owner = "wagtail";
tag = "v${version}";
hash = "sha256-JhLfrK4CBdTR85JuAjf9vGByQVgCIYT3IrM6AYxxNTE=";
hash = "sha256-iJwX/N8/aaAjinU1htVasp88fuuZCOomVPgJ1Ymxre4=";
};
build-system = [ flit-core ];
@@ -56,12 +56,12 @@ buildPythonPackage rec {
google-cloud-translate
];
# See https://github.com/wagtail/wagtail-localize/issues/922
patches = [ ./failing-test.patch ];
checkPhase = ''
runHook preCheck
# test_translate_html fails with later Beautifulsoup releases
rm wagtail_localize/machine_translators/tests/test_dummy_translator.py
${python.interpreter} testmanage.py test
runHook postCheck
@@ -0,0 +1,19 @@
diff --git a/wagtail_localize/tests/test_edit_translation.py b/wagtail_localize/tests/test_edit_translation.py
index 4bbe5a1..033b6bf 100644
--- a/wagtail_localize/tests/test_edit_translation.py
+++ b/wagtail_localize/tests/test_edit_translation.py
@@ -1,5 +1,6 @@
import json
import tempfile
+import unittest
import uuid
from unittest.mock import patch
@@ -1718,6 +1719,7 @@ def test_cant_edit_snippet_translation_without_perms(self):
"Sorry, you do not have permission to access this area.\n\n\n\n\n",
)
+ @unittest.skip
def test_edit_nested_snippet_translation(self):
for permission in Permission.objects.filter(
content_type=ContentType.objects.get_for_model(Header)