python.pkgs.objgraph: hardcode path to graphviz's bin/

This commit is contained in:
Robert Schütz
2018-12-19 15:14:29 +01:00
parent 4d29e16bf2
commit 2357d57e94
3 changed files with 73 additions and 1 deletions

View File

@@ -2,6 +2,8 @@
, buildPythonPackage
, fetchPypi
, isPyPy
, substituteAll
, graphvizPkg
, graphviz
, mock
}:
@@ -18,6 +20,13 @@ buildPythonPackage rec {
# Tests fail with PyPy.
disabled = isPyPy;
patches = [
(substituteAll {
src = ./hardcode-graphviz-path.patch;
graphviz = graphvizPkg;
})
];
propagatedBuildInputs = [ graphviz ];
checkInputs = [ mock ];