summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/vmprof/default.nix
blob: 916164c1c49af8d2f451b99fa808bc85d8663fb4 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
  lib,
  buildPythonPackage,
  pythonAtLeast,
  fetchFromGitHub,
  setuptools,
  colorama,
  pytz,
  requests,
  six,
  libunwind,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "vmprof";
  version = "0.4.17";
  pyproject = true;

  disabled = pythonAtLeast "3.12";

  src = fetchFromGitHub {
    owner = "vmprof";
    repo = "vmprof-python";
    tag = version;
    hash = "sha256-7k6mtEdPmp1eNzB4l/k/ExSYtRJVmRxcx50ql8zR36k=";
  };

  build-system = [ setuptools ];

  dependencies = [
    colorama
    requests
    six
    pytz
  ];

  buildInputs = [ libunwind ];

  nativeCheckInputs = [ pytestCheckHook ];

  disabledTests = [
    "test_gzip_call"
    "test_is_enabled"
    "test_get_profile_path"
    "test_get_runtime"
  ];

  pythonImportsCheck = [ "vmprof" ];

  meta = {
    description = "Vmprof client";
    mainProgram = "vmprofshow";
    license = lib.licenses.mit;
    homepage = "https://vmprof.readthedocs.org/";
  };
}