From 8403c0d5e2c41d8b25eac7bec689159c09255302 Mon Sep 17 00:00:00 2001 From: Austin Butler Date: Fri, 17 Mar 2023 22:14:43 -0700 Subject: [PATCH] python3Packages.debugpy: fix test failures --- pkgs/development/python-modules/debugpy/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/debugpy/default.nix b/pkgs/development/python-modules/debugpy/default.nix index d6dfff0ad795..95f2d8b21eef 100644 --- a/pkgs/development/python-modules/debugpy/default.nix +++ b/pkgs/development/python-modules/debugpy/default.nix @@ -3,6 +3,7 @@ , buildPythonPackage , pythonOlder , fetchFromGitHub +, fetchpatch , substituteAll , gdb , django @@ -37,6 +38,12 @@ buildPythonPackage rec { inherit version; }) + # https://github.com/microsoft/debugpy/issues/1230 + (fetchpatch { + url = "https://patch-diff.githubusercontent.com/raw/microsoft/debugpy/pull/1232.patch"; + sha256 = "sha256-m5p+xYiJ4w4GcaFIaPmlnErp/7WLwcvJmaCqa2SeSxU="; + }) + # Fix importing debugpy in: # - test_nodebug[module-launch(externalTerminal)] # - test_nodebug[module-launch(integratedTerminal)] @@ -100,10 +107,14 @@ buildPythonPackage rec { pytestFlagsArray = [ "--timeout=0" ]; - # Fixes hanging tests on Darwin __darwinAllowLocalNetworking = true; + disabledTests = [ + # https://github.com/microsoft/debugpy/issues/1241 + "test_flask_breakpoint_multiproc" + ]; + pythonImportsCheck = [ "debugpy" ];