mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 15:26:34 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
44 lines
769 B
Nix
44 lines
769 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
cflow,
|
|
graphviz,
|
|
pydot,
|
|
networkx,
|
|
which,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycflow2dot";
|
|
version = "0.2.3";
|
|
format = "setuptools";
|
|
|
|
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 = {
|
|
description = "Layout C call graphs from cflow using GraphViz dot";
|
|
mainProgram = "cflow2dot";
|
|
homepage = "https://github.com/johnyf/pycflow2dot";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = [ ];
|
|
};
|
|
}
|