2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-17 18:46:29 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPyPy
|
2018-12-19 14:14:29 +00:00
|
|
|
, substituteAll
|
2021-03-08 00:31:00 +00:00
|
|
|
, graphvizPkgs
|
2018-12-19 13:13:16 +00:00
|
|
|
, graphviz
|
|
|
|
, mock
|
2018-10-17 18:46:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "objgraph";
|
2020-11-05 07:30:53 +00:00
|
|
|
version = "3.5.0";
|
2018-10-17 18:46:29 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-05 07:30:53 +00:00
|
|
|
sha256 = "4752ca5bcc0e0512e41b8cc4d2780ac2fd3b3eabd03b7e950a5594c06203dfc4";
|
2018-10-17 18:46:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tests fail with PyPy.
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
2018-12-19 14:14:29 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./hardcode-graphviz-path.patch;
|
2021-03-08 00:31:00 +00:00
|
|
|
graphviz = graphvizPkgs;
|
2018-12-19 14:14:29 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-12-19 13:13:16 +00:00
|
|
|
propagatedBuildInputs = [ graphviz ];
|
|
|
|
|
|
|
|
checkInputs = [ mock ];
|
2018-10-17 18:46:29 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-17 18:46:29 +00:00
|
|
|
description = "Draws Python object reference graphs with graphviz";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://mg.pov.lt/objgraph/";
|
2018-10-17 18:46:29 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|