2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
numpy,
|
|
|
|
psutil,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonAtLeast,
|
|
|
|
pythonOlder,
|
|
|
|
trio,
|
|
|
|
untangle,
|
2022-08-12 12:06:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pydevd";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "3.0.3";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fabioz";
|
|
|
|
repo = "PyDev.Debugger";
|
2024-06-05 15:53:02 +00:00
|
|
|
rev = "pydev_debugger_${lib.replaceStrings [ "." ] [ "_" ] version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-aylmLN7lVUza2lt2K48rJsx3XatXPgPjcmPZ05raLX0=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2023-08-10 07:59:29 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
numpy
|
|
|
|
psutil
|
|
|
|
pytestCheckHook
|
|
|
|
trio
|
|
|
|
untangle
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
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"
|
|
|
|
# AssertionError pydevd_tracing.set_trace_to_threads(tracing_func) == 0
|
|
|
|
"test_step_next_step_in_multi_threads"
|
|
|
|
"test_tracing_basic"
|
|
|
|
"test_tracing_other_threads"
|
|
|
|
# subprocess.CalledProcessError
|
|
|
|
"test_find_main_thread_id"
|
|
|
|
]
|
|
|
|
++ lib.optionals (pythonAtLeast "3.12") [
|
|
|
|
"test_case_handled_and_unhandled_exception_generator"
|
|
|
|
"test_case_stop_async_iteration_exception"
|
|
|
|
"test_case_unhandled_exception_generator"
|
|
|
|
"test_function_breakpoints_async"
|
|
|
|
]
|
|
|
|
++ lib.optionals stdenv.isDarwin [
|
|
|
|
"test_multiprocessing_simple"
|
|
|
|
"test_evaluate_exception_trace"
|
|
|
|
];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pydevd" ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "PyDev.Debugger (used in PyDev, PyCharm and VSCode Python)";
|
|
|
|
homepage = "https://github.com/fabioz/PyDev.Debugger";
|
|
|
|
license = licenses.epl10;
|
|
|
|
maintainers = with maintainers; [ onny ];
|
2024-05-15 15:35:15 +00:00
|
|
|
mainProgram = "pydevd";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
}
|