diff --git a/pkgs/development/python-modules/django-modelcluster/default.nix b/pkgs/development/python-modules/django-modelcluster/default.nix index a254022b68dc..42162882aee1 100644 --- a/pkgs/development/python-modules/django-modelcluster/default.nix +++ b/pkgs/development/python-modules/django-modelcluster/default.nix @@ -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 ]; diff --git a/pkgs/development/python-modules/wagtail-localize/default.nix b/pkgs/development/python-modules/wagtail-localize/default.nix index 2b22e924a455..aedbc54f4bc1 100644 --- a/pkgs/development/python-modules/wagtail-localize/default.nix +++ b/pkgs/development/python-modules/wagtail-localize/default.nix @@ -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 diff --git a/pkgs/development/python-modules/wagtail-localize/failing-test.patch b/pkgs/development/python-modules/wagtail-localize/failing-test.patch new file mode 100644 index 000000000000..2d50ef7218d0 --- /dev/null +++ b/pkgs/development/python-modules/wagtail-localize/failing-test.patch @@ -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) diff --git a/pkgs/development/python-modules/wagtail/default.nix b/pkgs/development/python-modules/wagtail/default.nix index 4fdbdcc0c803..60704abf0bdb 100644 --- a/pkgs/development/python-modules/wagtail/default.nix +++ b/pkgs/development/python-modules/wagtail/default.nix @@ -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 = ''