Commit 73589b4e authored by Martin Joerg's avatar Martin Joerg
Browse files

python3Packages.graph-tool: enable graphviz support

parent 3692a637
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
  expat,
  fontconfig,
  gobject-introspection,
  graphviz,
  gtk3,
  llvmPackages,
  matplotlib,
@@ -58,6 +59,14 @@ buildPythonPackage rec {
      substituteInPlace configure \
        --replace-fail 'tput setaf $1' : \
        --replace-fail 'tput sgr0' :
    ''
    +
    # hardcode path to graphviz library to avoid find_library, which would require setting LD_LIBRARY_PATH
    ''
      substituteInPlace src/graph_tool/draw/graphviz_draw.py \
        --replace-fail \
          'ctypes.util.find_library("gvc")' \
          '"${lib.getLib graphviz}/lib/libgvc${stdenv.hostPlatform.extensions.sharedLibrary}"'
    '';

  configureFlags =
+1 −1
Original line number Diff line number Diff line
@@ -6422,7 +6422,7 @@ self: super: with self; {
  granian = callPackage ../development/python-modules/granian { };
  graph-tool = callPackage ../development/python-modules/graph-tool { inherit (pkgs) cgal; };
  graph-tool = callPackage ../development/python-modules/graph-tool { inherit (pkgs) cgal graphviz; };
  grapheme = callPackage ../development/python-modules/grapheme { };