From dc9aaedc99828d95bb287d08763f004f449c01d9 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 1 Apr 2024 20:51:59 +0200 Subject: [PATCH] python312Packages.django_5: disable failing test With the revert of xz 5.4.6 (down from 5.6.0) this test started failing on aarch64-linux on Python 3.12. --- pkgs/development/python-modules/django/5.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/django/5.nix b/pkgs/development/python-modules/django/5.nix index 2fe896e3bd3d..d359df1c9a45 100644 --- a/pkgs/development/python-modules/django/5.nix +++ b/pkgs/development/python-modules/django/5.nix @@ -2,6 +2,7 @@ , stdenv , buildPythonPackage , fetchPypi +, pythonAtLeast , pythonOlder , substituteAll @@ -75,6 +76,11 @@ buildPythonPackage rec { postPatch = '' substituteInPlace tests/utils_tests/test_autoreload.py \ --replace "/usr/bin/python" "${python.interpreter}" + '' + lib.optionalString (pythonAtLeast "3.12" && stdenv.hostPlatform.system == "aarch64-linux") '' + # Test regression after xz was reverted from 5.6.0 to 5.4.6 + # https://hydra.nixos.org/build/254532197 + substituteInPlace tests/view_tests/tests/test_debug.py \ + --replace-fail "test_files" "dont_test_files" ''; nativeBuildInputs = [