1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, numpy
5, psutil
6, pytestCheckHook
7, pythonOlder
8, trio
9, untangle
10}:
11
12buildPythonPackage rec {
13 pname = "pydevd";
14 version = "2.9.6";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "fabioz";
21 repo = "PyDev.Debugger";
22 rev = "pydev_debugger_${lib.replaceStrings ["."] ["_"] version}";
23 hash = "sha256-TDU/V7kY7zVxiP4OVjGqpsRVYplpkgCly2qAOqhZONo=";
24 };
25
26 nativeCheckInputs = [
27 numpy
28 psutil
29 pytestCheckHook
30 trio
31 untangle
32 ];
33
34 disabledTests = [
35 # Require network connection
36 "test_completion_sockets_and_messages"
37 "test_path_translation"
38 "test_attach_to_pid_no_threads"
39 "test_attach_to_pid_halted"
40 "test_remote_debugger_threads"
41 "test_path_translation_and_source_reference"
42 "test_attach_to_pid"
43 "test_terminate"
44 "test_gui_event_loop_custom"
45 # AssertionError: assert '/usr/bin/' == '/usr/bin'
46 # https://github.com/fabioz/PyDev.Debugger/issues/227
47 "test_to_server_and_to_client"
48 # AssertionError pydevd_tracing.set_trace_to_threads(tracing_func) == 0
49 "test_tracing_other_threads"
50 "test_tracing_basic"
51 ];
52
53 pythonImportsCheck = [
54 "pydevd"
55 ];
56
57 meta = with lib; {
58 description = "PyDev.Debugger (used in PyDev, PyCharm and VSCode Python)";
59 homepage = "https://github.com/fabioz/PyDev.Debugger";
60 license = licenses.epl10;
61 maintainers = with maintainers; [ onny ];
62 };
63}