From d2b3b4975e134ae18fc39639b2d9948ca54d5c3f Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 1 Mar 2025 14:00:14 +0100 Subject: [PATCH] python312Packages.nifty8: disable crashing tests on darwin --- pkgs/development/python-modules/nifty8/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/development/python-modules/nifty8/default.nix b/pkgs/development/python-modules/nifty8/default.nix index 2c57393731e4..2ffbde2ed8b2 100644 --- a/pkgs/development/python-modules/nifty8/default.nix +++ b/pkgs/development/python-modules/nifty8/default.nix @@ -70,6 +70,19 @@ buildPythonPackage rec { openssh ]; + disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ + # Fatal Python error: Aborted + # matplotlib/backend_bases.py", line 2654 in create_with_canvas + "test_optimize_kl_domain_expansion" + "test_plot_priorsamples" + ]; + + disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ + # Fatal Python error: Aborted + # matplotlib/backend_bases.py", line 2654 in create_with_canvas + "test/test_plot.py" + ]; + __darwinAllowLocalNetworking = true; postCheck = lib.optionalString