summary refs log tree commit diff
path: root/pkgs/development/python-modules/gprof2dot/default.nix
blob: 3170d199cf553db958d774c54ec74dcff789bcc1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib, fetchFromGitHub, buildPythonApplication, python, graphviz }:

buildPythonApplication rec {
  pname = "gprof2dot";
  version = "2019.11.30";

  src = fetchFromGitHub {
    owner = "jrfonseca";
    repo = "gprof2dot";
    rev = version;
    sha256 = "1nw4cfwimd0djarw4wc756q095xir78js8flmycg6g7sl3l6p27s";
  };

  checkInputs = [ graphviz ];
  checkPhase = "${python.interpreter} tests/test.py";

  meta = with lib; {
    homepage = "https://github.com/jrfonseca/gprof2dot";
    description = "Python script to convert the output from many profilers into a dot graph";
    license = licenses.lgpl3Plus;
    maintainers = [ maintainers.pmiddend ];
  };
}