python310Packages.perfplot: fix darwin build

This commit is contained in:
natsukium 2023-07-05 01:30:58 +09:00
parent fafd1a8123
commit d12dded201
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

View File

@ -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
];