python312Packages.hvplot: fix checks on darwin (#360891)

This commit is contained in:
Aleksana 2024-12-07 20:55:40 +08:00 committed by GitHub
commit c3b0eb39bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,6 +69,12 @@ buildPythonPackage rec {
"hvplot/tests/testutil.py"
];
# need to set MPLBACKEND=agg for headless matplotlib for darwin
# https://github.com/matplotlib/matplotlib/issues/26292
preCheck = ''
export MPLBACKEND=agg
'';
pythonImportsCheck = [ "hvplot.pandas" ];
meta = {