3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/gprof2dot/default.nix

42 lines
976 B
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, buildPythonApplication
, python
, graphviz
}:
buildPythonApplication rec {
pname = "gprof2dot";
version = "2021.02.21";
src = fetchFromGitHub {
owner = "jrfonseca";
repo = "gprof2dot";
rev = version;
sha256 = "1jjhsjf5fdi1fkn7mvhnzkh6cynl8gcjrygd3cya5mmda3akhzic";
};
makeWrapperArgs = [
"--prefix PATH : ${lib.makeBinPath [ graphviz ]}"
];
# Needed so dot is on path of the test script
2019-06-02 22:10:42 +01:00
checkInputs = [ graphviz ];
checkPhase = ''
runHook preCheck
# if options not specified, will use unwrapped gprof2dot from original source
${python.interpreter} tests/test.py --python bash --gprof2dot $out/bin/gprof2dot
runHook postCheck
'';
2019-06-02 22:10:42 +01:00
2019-01-25 15:18:41 +00:00
meta = with lib; {
2019-12-25 09:29:25 +00:00
homepage = "https://github.com/jrfonseca/gprof2dot";
description = "Python script to convert the output from many profilers into a dot graph";
license = licenses.lgpl3Plus;
2019-01-25 15:18:41 +00:00
maintainers = [ maintainers.pmiddend ];
};
}