From 28834630f98e65104758c31489147a7d59013392 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 21 May 2026 13:25:52 +0000 Subject: [PATCH] python3Packages.mpmath: skip failing test on x86_64-darwin --- pkgs/development/python-modules/mpmath/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/python-modules/mpmath/default.nix b/pkgs/development/python-modules/mpmath/default.nix index 01c2299b1d8c..a1daf9120245 100644 --- a/pkgs/development/python-modules/mpmath/default.nix +++ b/pkgs/development/python-modules/mpmath/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, gmpy2, @@ -46,6 +47,16 @@ buildPythonPackage (finalAttrs: { pexpect ]; + # Ugly hack to preserve the hash on non-`x86_64-darwin` platforms + ${if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64 then "disabledTests" else null} = + [ + # Expected: + # -0.5440211108893698 + # Got: + # -0.5440211108893699 + "contexts.rst" + ]; + meta = { homepage = "https://mpmath.org/"; description = "Pure-Python library for multiprecision floating arithmetic";