mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
python310Packages.perfplot: fix darwin build
This commit is contained in:
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
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user