2018-10-17 20:46:29 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPyPy
|
2018-12-19 15:14:29 +01:00
|
|
|
, substituteAll
|
|
|
|
, graphvizPkg
|
2018-12-19 14:13:16 +01:00
|
|
|
, graphviz
|
|
|
|
, mock
|
2018-10-17 20:46:29 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "objgraph";
|
2019-04-24 18:42:49 +02:00
|
|
|
version = "3.4.1";
|
2018-10-17 20:46:29 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-24 18:42:49 +02:00
|
|
|
sha256 = "bf29512d7f8b457b53fa0722ea59f516abb8abc59b78f97f0ef81394a0c615a7";
|
2018-10-17 20:46:29 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tests fail with PyPy.
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
2018-12-19 15:14:29 +01:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./hardcode-graphviz-path.patch;
|
|
|
|
graphviz = graphvizPkg;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-12-19 14:13:16 +01:00
|
|
|
propagatedBuildInputs = [ graphviz ];
|
|
|
|
|
|
|
|
checkInputs = [ mock ];
|
2018-10-17 20:46:29 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Draws Python object reference graphs with graphviz";
|
|
|
|
homepage = https://mg.pov.lt/objgraph/;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|