depot/third_party/nixpkgs/pkgs/development/python-modules/pycflow2dot/default.nix
Default email 3e2acf8aff Project import generated by Copybara.
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
2021-05-20 18:08:51 -05:00

41 lines
740 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, cflow
, graphviz
, pydot
, networkx
, which
}:
buildPythonPackage rec {
pname = "pycflow2dot";
version = "0.2.3";
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";
homepage = "https://github.com/johnyf/pycflow2dot";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ evils ];
};
}