aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/debugpy/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/debugpy/default.nix')
-rw-r--r--pkgs/development/python-modules/debugpy/default.nix16
1 files changed, 7 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/debugpy/default.nix b/pkgs/development/python-modules/debugpy/default.nix
index 5f10b7897e96..75a11d8cf263 100644
--- a/pkgs/development/python-modules/debugpy/default.nix
+++ b/pkgs/development/python-modules/debugpy/default.nix
@@ -18,13 +18,13 @@
buildPythonPackage rec {
pname = "debugpy";
- version = "1.1.0";
+ version = "1.2.0";
src = fetchFromGitHub {
owner = "Microsoft";
repo = pname;
rev = "v${version}";
- sha256 = "1f6a62hg82fn9ddrl6g11x2h27zng8jmrlfbnnra6q590i5v1ixr";
+ sha256 = "1r5w5ngipj5fgjylrmlw3jrh5y2n67n68l91sj9329549x4ww8dh";
};
patches = [
@@ -34,6 +34,11 @@ buildPythonPackage rec {
inherit gdb;
})
+ (substituteAll {
+ src = ./hardcode-version.patch;
+ inherit version;
+ })
+
# Fix importing debugpy in:
# - test_nodebug[module-launch(externalTerminal)]
# - test_nodebug[module-launch(integratedTerminal)]
@@ -45,13 +50,6 @@ buildPythonPackage rec {
./fix-test-pythonpath.patch
];
- postPatch = ''
- # Use nixpkgs version instead of versioneer
- substituteInPlace setup.py \
- --replace "cmds = versioneer.get_cmdclass()" "cmds = {}" \
- --replace "version=versioneer.get_version()" "version='${version}'"
- '';
-
# Remove pre-compiled "attach" libraries and recompile for host platform
# Compile flags taken from linux_and_mac/compile_linux.sh & linux_and_mac/compile_mac.sh
preBuild = ''(