Loading pkgs/development/python-modules/graph-tool/default.nix +9 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ expat, fontconfig, gobject-introspection, graphviz, gtk3, llvmPackages, matplotlib, Loading Loading @@ -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 = Loading pkgs/top-level/python-packages.nix +1 −1 Original line number Diff line number Diff line Loading @@ -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 { }; Loading Loading
pkgs/development/python-modules/graph-tool/default.nix +9 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ expat, fontconfig, gobject-introspection, graphviz, gtk3, llvmPackages, matplotlib, Loading Loading @@ -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 = Loading
pkgs/top-level/python-packages.nix +1 −1 Original line number Diff line number Diff line Loading @@ -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 { }; Loading