python310Packages.matplotx: move checkInputs to nativeCheckInputs

This commit is contained in:
natsukium 2023-07-05 06:52:17 +09:00
parent f6799dcd4b
commit fafd1a8123
No known key found for this signature in database
GPG key ID: 9EA45A31DB994C53

View file

@ -42,14 +42,13 @@ buildPythonPackage rec {
];
};
checkInputs = passthru.optional-dependencies.all;
# 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
];
] ++ passthru.optional-dependencies.all;
disabledTestPaths = [
"tests/test_spy.py" # Requires meshzoo (non-free) and pytest-codeblocks (not packaged)
@ -65,3 +64,4 @@ buildPythonPackage rec {
maintainers = with lib.maintainers; [ swflint ];
};
}