python3Packages.nifty8: fix matplotlib tests on darwin

This commit is contained in:
Gaetan Lepage
2026-01-17 10:28:53 +00:00
parent 84cc19a115
commit d5b887231b
@@ -70,22 +70,16 @@ 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"
# Prevents 'Fatal Python error: Aborted' on darwin during checkPhase
preCheck = lib.optionalString stdenv.hostPlatform.isDarwin ''
export MPLBACKEND="Agg"
'';
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# [XPASS(strict)] np.vdot inaccurate for single precision
"test_vdot"
];
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