From d12dded201ac123407923ed457be06cdc0c5d28f Mon Sep 17 00:00:00 2001 From: natsukium Date: Wed, 5 Jul 2023 01:30:58 +0900 Subject: [PATCH] python310Packages.perfplot: fix darwin build --- pkgs/development/python-modules/perfplot/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/perfplot/default.nix b/pkgs/development/python-modules/perfplot/default.nix index 96fa5309a81d..db8b4cd572b3 100644 --- a/pkgs/development/python-modules/perfplot/default.nix +++ b/pkgs/development/python-modules/perfplot/default.nix @@ -1,4 +1,5 @@ { lib +, stdenv , buildPythonPackage , fetchFromGitHub , flit-core @@ -35,6 +36,10 @@ buildPythonPackage rec { rich ]; + # 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"; + nativeCheckInputs = [ pytestCheckHook ];