From b8a7603c6d3582bdaf24688579014429a70cfc2e Mon Sep 17 00:00:00 2001 From: Evils Date: Sun, 9 May 2021 02:30:09 +0200 Subject: [PATCH] pycflow2dot: init at 0.2.3 --- .../python-modules/pycflow2dot/default.nix | 41 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + pkgs/top-level/python-packages.nix | 4 ++ 3 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/pycflow2dot/default.nix diff --git a/pkgs/development/python-modules/pycflow2dot/default.nix b/pkgs/development/python-modules/pycflow2dot/default.nix new file mode 100644 index 000000000000..db1ac8fabb2f --- /dev/null +++ b/pkgs/development/python-modules/pycflow2dot/default.nix @@ -0,0 +1,41 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e7cfe7eaf95e..d592008e2413 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7820,6 +7820,8 @@ in pycangjie = pythonPackages.pycangjie; + pycflow2dot = with python.pkgs; toPythonApplication pycflow2dot; + pydb = callPackage ../development/tools/pydb { }; pydf = callPackage ../applications/misc/pydf { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f4f6a4d6e36f..0d75625019bf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5410,6 +5410,10 @@ in { pycfdns = callPackage ../development/python-modules/pycfdns { }; + pycflow2dot = callPackage ../development/python-modules/pycflow2dot { + inherit (pkgs) graphviz; + }; + pychannels = callPackage ../development/python-modules/pychannels { }; pychart = callPackage ../development/python-modules/pychart { };