1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6}:
7
8buildPythonPackage rec {
9 pname = "pyprof2calltree";
10 version = "1.4.5";
11 pyproject = true;
12
13 # Fetch from GitHub because the PyPi packaged version does not
14 # include all test files.
15 src = fetchFromGitHub {
16 owner = "pwaller";
17 repo = "pyprof2calltree";
18 tag = "v${version}";
19 hash = "sha256-PrIYpvcoD+zVIoOdcON41JmqzpA5FyRKhI7rqDV8cSo=";
20 };
21
22 build-system = [ setuptools ];
23
24 meta = {
25 description = "Help visualize profiling data from cProfile with kcachegrind and qcachegrind";
26 mainProgram = "pyprof2calltree";
27 homepage = "https://github.com/pwaller/pyprof2calltree";
28 changelog = "https://github.com/pwaller/pyprof2calltree/releases/tag/${src.tag}";
29 license = lib.licenses.mit;
30 maintainers = with lib.maintainers; [ sfrijters ];
31 };
32}