2018-10-17 19:46:29 +01:00
|
|
|
{ stdenv
|
|
|
|
, 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";
|
2019-04-24 17:42:49 +01:00
|
|
|
version = "3.4.1";
|
2018-10-17 19:46:29 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-24 17:42:49 +01:00
|
|
|
sha256 = "bf29512d7f8b457b53fa0722ea59f516abb8abc59b78f97f0ef81394a0c615a7";
|
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
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Draws Python object reference graphs with graphviz";
|
|
|
|
homepage = https://mg.pov.lt/objgraph/;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|