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