python3Packages.pydevd: cleanup

This commit is contained in:
Gaetan Lepage
2026-01-07 10:44:45 +00:00
parent 2dc2ce4ae0
commit b954f20bf9
@@ -1,20 +1,24 @@
{
stdenv,
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
# build-system
cython,
setuptools,
# tests
numpy,
psutil,
pytest-xdist,
pytestCheckHook,
pytest-xdist,
pythonAtLeast,
trio,
untangle,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "pydevd";
version = "3.4.1";
pyproject = true;
@@ -22,17 +26,10 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "fabioz";
repo = "PyDev.Debugger";
tag = "pydev_debugger_${lib.replaceStrings [ "." ] [ "_" ] version}";
tag = "pydev_debugger_${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
hash = "sha256-srcYeN4IsnX/B0AWLynr62UC5o+DcjnUrGjcTpvHTCM=";
};
# https://github.com/fabioz/PyDev.Debugger/issues/316
disabled = pythonAtLeast "3.14";
postPatch = ''
sed -i '/addopts/d' pytest.ini
'';
__darwinAllowLocalNetworking = true;
build-system = [
@@ -43,7 +40,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
numpy
psutil
#pytest-xdist
pytest-xdist
pytestCheckHook
trio
untangle
@@ -64,9 +61,11 @@ buildPythonPackage rec {
"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"
]
@@ -75,6 +74,44 @@ buildPythonPackage rec {
# 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"
@@ -89,4 +126,4 @@ buildPythonPackage rec {
maintainers = with lib.maintainers; [ onny ];
mainProgram = "pydevd";
};
}
})