-
-
Notifications
You must be signed in to change notification settings - Fork 15.2k
/
Copy pathpackage.nix
85 lines (72 loc) · 1.79 KB
/
package.nix
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
lib,
elfutils,
fetchFromGitHub,
libunwind,
lz4,
pkg-config,
python3Packages,
}:
python3Packages.buildPythonApplication rec {
pname = "memray";
version = "1.15.0";
pyproject = true;
src = fetchFromGitHub {
owner = "bloomberg";
repo = "memray";
tag = "v${version}";
hash = "sha256-SgkJm+vtIid8RR1Qy98PkpvIQX4LxyAPlS+4UlYlZws=";
};
build-system = with python3Packages; [
distutils
setuptools
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libunwind
lz4
elfutils # for `-ldebuginfod`
] ++ (with python3Packages; [ cython ]);
dependencies = with python3Packages; [
pkgconfig
textual
jinja2
rich
];
nativeCheckInputs =
with python3Packages;
[
ipython
pytest-cov # fix Unknown pytest.mark.no_cover
pytest-textual-snapshot
pytestCheckHook
]
++ lib.optionals (pythonOlder "3.14") [ greenlet ];
pythonImportsCheck = [ "memray" ];
pytestFlagsArray = [ "tests" ];
disabledTests = [
# Import issue
"test_header_allocator"
"test_hybrid_stack_of_allocations_inside_ceval"
# Snapshot tests are failing with textual 2.0.0
# https://github.com/bloomberg/memray/issues/713
"TestTUILooks"
"test_tui_basic"
"test_tui_pause"
"test_tui_gradient"
"test_merge_threads"
"test_unmerge_threads"
];
disabledTestPaths = [
# Very time-consuming and some tests fails (performance-related?)
"tests/integration/test_main.py"
];
meta = {
description = "Memory profiler for Python";
homepage = "https://bloomberg.github.io/memray/";
changelog = "https://github.com/bloomberg/memray/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
platforms = lib.platforms.linux;
};
}