From 3692a637e7e80a8df86e92b09df0c0b4795871ed Mon Sep 17 00:00:00 2001 From: Martin Joerg Date: Fri, 28 Nov 2025 13:59:16 +0000 Subject: [PATCH] python3Packages.graph-tool: perform more import checks --- pkgs/development/python-modules/graph-tool/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/graph-tool/default.nix b/pkgs/development/python-modules/graph-tool/default.nix index d3342642ebdc..cf4b067f31d8 100644 --- a/pkgs/development/python-modules/graph-tool/default.nix +++ b/pkgs/development/python-modules/graph-tool/default.nix @@ -9,6 +9,7 @@ cairomm, cgal, expat, + fontconfig, gobject-introspection, gtk3, llvmPackages, @@ -99,7 +100,14 @@ buildPythonPackage rec { propagatedNativeBuildInputs = [ gobject-introspection ]; - pythonImportsCheck = [ "graph_tool" ]; + preInstallCheck = + # avoid warnings about Matplotlib and Fontconfig configuration issues + '' + export HOME=$(mktemp -d) + export FONTCONFIG_FILE=${fontconfig.out}/etc/fonts/fonts.conf + ''; + + pythonImportsCheck = [ "graph_tool.all" ]; passthru.updateScript = gitUpdater { url = "https://git.skewed.de/count0/graph-tool";