python310Packages.perfplot: fix darwin build

This commit is contained in:
natsukium
2023-07-05 06:52:34 +09:00
parent fafd1a8123
commit d12dded201
@@ -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
];