From f30ad55e2dbec76bb26fff568a2c3f01f6a7faef Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 21 Jun 2021 02:02:37 +0200 Subject: [PATCH] python3Packages.debugpy: fix tests with flask>=2.0 --- pkgs/development/python-modules/debugpy/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/debugpy/default.nix b/pkgs/development/python-modules/debugpy/default.nix index 059f2110fd53..da1f25ad2c3e 100644 --- a/pkgs/development/python-modules/debugpy/default.nix +++ b/pkgs/development/python-modules/debugpy/default.nix @@ -2,6 +2,7 @@ , stdenv , buildPythonPackage , fetchFromGitHub +, fetchpatch , substituteAll , gdb , flask @@ -48,6 +49,12 @@ buildPythonPackage rec { # To avoid this issue, debugpy should be installed using python.withPackages: # python.withPackages (ps: with ps; [ debugpy ]) ./fix-test-pythonpath.patch + + # Fix tests with flask>=2.0 + (fetchpatch { + url = "https://github.com/microsoft/debugpy/commit/0a7f2cd67dda27ea4d38389b49a4e2a1899b834e.patch"; + sha256 = "1g070fn07n7jj01jaf5s570zn70akf6klkamigs3ix11gh736rpn"; + }) ]; # Remove pre-compiled "attach" libraries and recompile for host platform