2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
cflow,
|
|
|
|
graphviz,
|
|
|
|
pydot,
|
|
|
|
networkx,
|
|
|
|
which,
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycflow2dot";
|
|
|
|
version = "0.2.3";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1zm8x2pd0q6zza0fw7hg9g1qvybfnjq6ql9b8mh2fc45l7l25655";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cflow
|
|
|
|
graphviz
|
|
|
|
pydot
|
|
|
|
networkx
|
|
|
|
which
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pycflow2dot" ];
|
|
|
|
checkPhase = ''
|
|
|
|
cd tests
|
|
|
|
export PATH=$out/bin:$PATH
|
|
|
|
make all
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Layout C call graphs from cflow using GraphViz dot";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cflow2dot";
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://github.com/johnyf/pycflow2dot";
|
|
|
|
license = licenses.gpl3Plus;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = with maintainers; [ evils ];
|
|
|
|
};
|
|
|
|
}
|