python3Packages.debugpy: fix tests with flask>=2.0

This commit is contained in:
Martin Weinelt
2021-06-21 02:02:37 +02:00
parent 33c2d079a8
commit f30ad55e2d

View File

@@ -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