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