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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
# build-system
cython,
setuptools,
# tests
numpy,
psutil,
pytestCheckHook,
pytest-xdist,
pythonAtLeast,
trio,
untangle,
}:
buildPythonPackage (finalAttrs: {
pname = "pydevd";
version = "3.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "fabioz";
repo = "PyDev.Debugger";
tag = "pydev_debugger_${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
hash = "sha256-srcYeN4IsnX/B0AWLynr62UC5o+DcjnUrGjcTpvHTCM=";
};
__darwinAllowLocalNetworking = true;
build-system = [
cython
setuptools
];
nativeCheckInputs = [
numpy
psutil
pytest-xdist
pytestCheckHook
trio
untangle
];
enabledTestPaths = [
"tests/"
];
disabledTests = [
# Require network connection
"test_completion_sockets_and_messages"
"test_path_translation"
"test_attach_to_pid_no_threads"
"test_attach_to_pid_halted"
"test_remote_debugger_threads"
"test_path_translation_and_source_reference"
"test_attach_to_pid"
"test_terminate"
"test_gui_event_loop_custom"
# AssertionError: assert '/usr/bin/' == '/usr/bin'
# https://github.com/fabioz/PyDev.Debugger/issues/227
"test_to_server_and_to_client"
# Times out
"test_case_sys_exit_multiple_exception_attach"
]
++ lib.optionals (pythonAtLeast "3.12") [
# raise segmentation fault
# https://github.com/fabioz/PyDev.Debugger/issues/269
"test_evaluate_expression"
]
++ lib.optionals (pythonAtLeast "3.14") [
# AssertionError (strings do not match)
"test_build_tuple"
"test_collect_try_except_info"
"test_collect_try_except_info2"
"test_collect_try_except_info3"
"test_collect_try_except_info4"
"test_collect_try_except_info4a"
"test_collect_try_except_info_in_single_line_1"
"test_collect_try_except_info_in_single_line_2"
"test_collect_try_except_info_multiple_except"
"test_collect_try_except_info_raise_unhandled10"
"test_collect_try_except_info_raise_unhandled7"
"test_collect_try_except_info_return_on_except"
"test_collect_try_except_info_with"
"test_separate_future_import"
"test_simple_code_to_bytecode_cls_method"
"test_simple_code_to_bytecode_repr_return_tuple"
"test_simple_code_to_bytecode_repr_return_tuple_with_call"
"test_simple_code_to_bytecode_repr_simple_method_calls"
"test_simple_code_to_bytecode_repr_tuple"
"test_smart_step_into_bytecode_info_023a"
# AssertionError: False is not true
"test_if_code_obj_equals"
# AssertionError: TimeoutError (note: error trying to dump threads on timeout: [Errno 9] Bad file descriptor).
"test_m_switch"
"test_module_entry_point"
"test_multiprocessing_simple"
"test_stop_on_start_entry_point"
"test_stop_on_start_m_switch"
# Failed: remains unmatched: 'Worked'
"test_run"
# Failed: remains unmatched: 'WorkedLocalFoo'
"test_run_on_local_module_without_adding_to_pythonpath"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
"test_multiprocessing_simple"
"test_evaluate_exception_trace"
];
pythonImportsCheck = [ "pydevd" ];
meta = {
description = "PyDev.Debugger (used in PyDev, PyCharm and VSCode Python)";
homepage = "https://github.com/fabioz/PyDev.Debugger";
license = lib.licenses.epl10;
maintainers = with lib.maintainers; [ onny ];
mainProgram = "pydevd";
};
})
|