From ea6f9de7e04fe1e45121da6054a92d944c2034fa Mon Sep 17 00:00:00 2001 From: natsukium Date: Wed, 5 Jul 2023 01:31:18 +0900 Subject: [PATCH] python310Packages.accupy: fix darwin build --- pkgs/development/python-modules/accupy/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/accupy/default.nix b/pkgs/development/python-modules/accupy/default.nix index dfe47d306811..7c6d33512bb7 100644 --- a/pkgs/development/python-modules/accupy/default.nix +++ b/pkgs/development/python-modules/accupy/default.nix @@ -1,4 +1,5 @@ { lib +, stdenv , buildPythonPackage , fetchFromGitHub , pythonOlder @@ -56,6 +57,10 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; + # This variable is needed to suppress the "Trace/BPT trap: 5" error in Darwin's checkPhase. + # Not sure of the details, but we can avoid it by changing the matplotlib backend during testing. + env.MPLBACKEND = lib.optionalString stdenv.isDarwin "Agg"; + # performance tests aren't useful to us and disabling them allows us to # decouple ourselves from an unnecessary build dep preCheck = ''