summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyprof2calltree/default.nix
blob: 5fabbfe67cb5e75eaf7c19d73d309b5620e913f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pyprof2calltree";
  version = "1.4.5";
  pyproject = true;

  # Fetch from GitHub because the PyPi packaged version does not
  # include all test files.
  src = fetchFromGitHub {
    owner = "pwaller";
    repo = "pyprof2calltree";
    tag = "v${version}";
    hash = "sha256-PrIYpvcoD+zVIoOdcON41JmqzpA5FyRKhI7rqDV8cSo=";
  };

  build-system = [ setuptools ];

  meta = {
    description = "Help visualize profiling data from cProfile with kcachegrind and qcachegrind";
    mainProgram = "pyprof2calltree";
    homepage = "https://github.com/pwaller/pyprof2calltree";
    changelog = "https://github.com/pwaller/pyprof2calltree/releases/tag/${src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ sfrijters ];
  };
}