Merge pull request #121751 from MetaDark/pythonPackages.debugpy

pythonPackages.debugpy: 1.2.1 → 1.3.0

authored by

Fabian Affolter and committed by
GitHub
68474bb1 37c75aaf

+7 -4
+5 -2
pkgs/development/python-modules/debugpy/default.nix
··· 17 18 buildPythonPackage rec { 19 pname = "debugpy"; 20 - version = "1.2.1"; 21 22 src = fetchFromGitHub { 23 owner = "Microsoft"; 24 repo = pname; 25 rev = "v${version}"; 26 - sha256 = "1dgjbbhy228w2zbfq5pf0hkai7742zw8mmybnzjdc9l6pw7360rq"; 27 }; 28 29 patches = [ ··· 33 inherit gdb; 34 }) 35 36 (substituteAll { 37 src = ./hardcode-version.patch; 38 inherit version; ··· 86 # gevent fails to import zope.interface with Python 2.7 87 "gevent" 88 ]; 89 90 meta = with lib; { 91 description = "An implementation of the Debug Adapter Protocol for Python";
··· 17 18 buildPythonPackage rec { 19 pname = "debugpy"; 20 + version = "1.3.0"; 21 22 src = fetchFromGitHub { 23 owner = "Microsoft"; 24 repo = pname; 25 rev = "v${version}"; 26 + hash = "sha256-YGzc9mMIzPTmUgIXuZROLdYKjUm69x9SR+JtYRVpn24="; 27 }; 28 29 patches = [ ··· 33 inherit gdb; 34 }) 35 36 + # Use nixpkgs version instead of versioneer 37 (substituteAll { 38 src = ./hardcode-version.patch; 39 inherit version; ··· 87 # gevent fails to import zope.interface with Python 2.7 88 "gevent" 89 ]; 90 + 91 + pythonImportsCheck = [ "debugpy" ]; 92 93 meta = with lib; { 94 description = "An implementation of the Debug Adapter Protocol for Python";
+2 -2
pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch
··· 1 diff --git a/tests/debug/session.py b/tests/debug/session.py 2 - index 2b39106..6d45a10 100644 3 --- a/tests/debug/session.py 4 +++ b/tests/debug/session.py 5 - @@ -625,6 +625,7 @@ class Session(object): 6 if "PYTHONPATH" in self.config.env: 7 # If specified, launcher will use it in lieu of PYTHONPATH it inherited 8 # from the adapter when spawning debuggee, so we need to adjust again.
··· 1 diff --git a/tests/debug/session.py b/tests/debug/session.py 2 + index 101492f..4ee7cfb 100644 3 --- a/tests/debug/session.py 4 +++ b/tests/debug/session.py 5 + @@ -630,6 +630,7 @@ class Session(object): 6 if "PYTHONPATH" in self.config.env: 7 # If specified, launcher will use it in lieu of PYTHONPATH it inherited 8 # from the adapter when spawning debuggee, so we need to adjust again.