From 9e5774c4e319c570335c26ca1013fdba3252f5a0 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Sun, 1 Dec 2024 14:14:44 -0800 Subject: [PATCH] python312Packages.hvplot: fix checks on darwin fix checkphase on darwin to not access the display --- pkgs/development/python-modules/hvplot/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/hvplot/default.nix b/pkgs/development/python-modules/hvplot/default.nix index 4831f14335c0..0687b65e297f 100644 --- a/pkgs/development/python-modules/hvplot/default.nix +++ b/pkgs/development/python-modules/hvplot/default.nix @@ -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 = {