summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMetaDark <kira.bruneau@gmail.com>2020-10-26 18:00:04 -0400
committerJonathan Ringer <jonringer@users.noreply.github.com>2020-10-27 18:27:08 -0700
commitda11534a4ec96b57de4d882d04a0bbe4117767fd (patch)
tree8c2e3ee40bb3aa39f8e72e2ac9cfd1aeca77ad8d
parent5594fe0c396b956a012e470de1900b09ac369fd5 (diff)
pythonPackages.debugpy: 1.0.0 -> 1.1.0
-rw-r--r--pkgs/development/python-modules/debugpy/default.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/debugpy/default.nix b/pkgs/development/python-modules/debugpy/default.nix
index 52f23f437a60..5f10b7897e96 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.0.0";
+ version = "1.1.0";
src = fetchFromGitHub {
owner = "Microsoft";
repo = pname;
rev = "v${version}";
- sha256 = "1cxwbq97n5pfmq0hji1ybbc6i1jg5bjy830dq23zqxbwxxwjx98m";
+ sha256 = "1f6a62hg82fn9ddrl6g11x2h27zng8jmrlfbnnra6q590i5v1ixr";
};
patches = [
@@ -45,6 +45,13 @@ 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 = ''(