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";
|
2018-11-04 10:35:07 +00:00
|
|
|
version = "3.4.0";
|
2018-10-17 19:46:29 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:07 +00:00
|
|
|
sha256 = "4a0c2c6268e10a9e8176ae054ff3faac9a432087801e1f95c3ebbe52550295a0";
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|