blob: e8b28062a829a378793275c1c335d8dd61e97adf (
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
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
58
|
{
lib,
buildPythonPackage,
pythonOlder,
pythonAtLeast,
fetchFromGitHub,
setuptools,
colorama,
pytz,
requests,
six,
libunwind,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "vmprof";
version = "0.4.17";
pyproject = true;
disabled = pythonOlder "3.6" || pythonAtLeast "3.12";
src = fetchFromGitHub {
owner = "vmprof";
repo = "vmprof-python";
rev = "refs/tags/${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 = with lib; {
description = "Vmprof client";
mainProgram = "vmprofshow";
license = licenses.mit;
homepage = "https://vmprof.readthedocs.org/";
};
}
|