python3Packages.wagtail: 7.3 -> 7.4 (#522353)

This commit is contained in:
Martin Weinelt
2026-05-20 20:40:41 +00:00
committed by GitHub
4 changed files with 29 additions and 10 deletions
@@ -20,14 +20,14 @@
buildPythonPackage rec {
pname = "django-modelcluster";
version = "6.4.1";
version = "6.5";
pyproject = true;
src = fetchFromGitHub {
owner = "wagtail";
repo = "django-modelcluster";
tag = "v${version}";
hash = "sha256-LVCYjbKN53740hr5Tl0JRbx17g35fnauZHIKQNkb5Kc=";
hash = "sha256-jIEiwWuC+sudUHsHuG975nxrlC2yKZN/QjdvMKEeL6s=";
};
build-system = [ setuptools ];
@@ -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)
@@ -37,14 +37,14 @@
buildPythonPackage (finalAttrs: {
pname = "wagtail";
version = "7.3";
version = "7.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "wagtail";
repo = "wagtail";
tag = "v${finalAttrs.version}";
hash = "sha256-o/4jn32ffR3BPVNwtFKJ6PowXYi7SpjBqghdeZIl5tM=";
hash = "sha256-+Ar8lg340rafaRNgcohEBuloU/dJC+ODTzAMmrPS/PU=";
};
nativeBuildInputs = [
@@ -54,7 +54,7 @@ buildPythonPackage (finalAttrs: {
npmDeps = fetchNpmDeps {
inherit (finalAttrs) src;
hash = "sha256-Uc16K1RZUCnr4qRe2u4yB44F+zYFBxMpEQCz5992RMA=";
hash = "sha256-Z2VOMqsNIBybJpfYxAq2dkmS2vwd8Yuhu7MCFyqNxdI=";
};
preBuild = ''