python.pkgs.pygraphviz: add graphviz path
This commit is contained in:
@@ -13,8 +13,18 @@ buildPythonPackage rec {
|
||||
buildInputs = [ doctest-ignore-unicode mock nose ];
|
||||
propagatedBuildInputs = [ graphviz pkgconfig ];
|
||||
|
||||
# the tests are currently failing:
|
||||
# check status of pygraphviz/pygraphviz#129
|
||||
patches = [
|
||||
# pygraphviz depends on graphviz being in PATH. This patch always prepends
|
||||
# graphviz to PATH.
|
||||
./graphviz-path.patch
|
||||
];
|
||||
postPatch = ''
|
||||
substituteInPlace pygraphviz/agraph.py --subst-var-by graphvizPath '${graphviz}/bin'
|
||||
'';
|
||||
|
||||
# The tests are currently failing because of a bug in graphviz 2.40.1.
|
||||
# Upstream does not want to skip the relevant tests:
|
||||
# https://github.com/pygraphviz/pygraphviz/pull/129
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
Reference in New Issue
Block a user