python3Packages.graph-tool: enable graphviz support

This commit is contained in:
Martin Joerg
2025-11-28 13:59:16 +00:00
parent 3692a637e7
commit 73589b4e56
2 changed files with 10 additions and 1 deletions
@@ -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
View File
@@ -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 { };