Commit 3692a637 authored by Martin Joerg's avatar Martin Joerg
Browse files

python3Packages.graph-tool: perform more import checks

parent a5a31d13
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -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";