From 02b6d9681d13b5d3340a3bdce4c3c05d692aa56f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 1 Oct 2024 10:20:51 +0200 Subject: [PATCH] python312Packages.numpy_1: disable failing test The distutils version vendored in setuptools 74.0 and later does not have the msvccompiler class any longer. --- pkgs/development/python-modules/numpy/1.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/numpy/1.nix b/pkgs/development/python-modules/numpy/1.nix index 2bd7a44903fa..795f24e5eefa 100644 --- a/pkgs/development/python-modules/numpy/1.nix +++ b/pkgs/development/python-modules/numpy/1.nix @@ -155,7 +155,11 @@ buildPythonPackage rec { # https://github.com/numpy/numpy/issues/24548 disabledTests = - lib.optionals stdenv.hostPlatform.isi686 [ + [ + # Tries to import numpy.distutils.msvccompiler, removed in setuptools 74.0 + "test_api_importable" + ] + ++ lib.optionals stdenv.hostPlatform.isi686 [ "test_new_policy" # AssertionError: assert False "test_identityless_reduction_huge_array" # ValueError: Maximum allowed dimension exceeded "test_float_remainder_overflow" # AssertionError: FloatingPointError not raised by divmod