lol

Merge pull request #141887 from kira-bruneau/pythonPackages.debugpy

authored by

Sandro and committed by
GitHub
fbaffb3f f12ffac9

+8 -17
+8 -17
pkgs/development/python-modules/debugpy/default.nix
··· 4 , fetchFromGitHub 5 , substituteAll 6 , gdb 7 , flask 8 , psutil 9 , pytest-timeout 10 , pytest-xdist 11 , pytestCheckHook 12 , requests 13 - , isPy27 14 - , django 15 - , gevent 16 }: 17 18 buildPythonPackage rec { 19 pname = "debugpy"; 20 - version = "1.4.3"; 21 22 src = fetchFromGitHub { 23 owner = "Microsoft"; 24 repo = pname; 25 rev = "v${version}"; 26 - hash = "sha256-ULxVoZuMNDL0Win/+55RnbkCPZ8OI8nhSKshvJOMFQ4="; 27 }; 28 29 patches = [ ··· 65 }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}")} 66 )''; 67 68 checkInputs = [ 69 flask 70 psutil 71 pytest-timeout 72 pytest-xdist 73 pytestCheckHook 74 requests 75 - ] ++ lib.optionals (!isPy27) [ 76 - django 77 - gevent 78 ]; 79 80 # Override default arguments in pytest.ini 81 pytestFlagsArray = [ "--timeout=0" "-n=$NIX_BUILD_CORES" ]; 82 - 83 - disabledTests = lib.optionals isPy27 [ 84 - # django 1.11 is the last version to support Python 2.7 85 - # and is no longer built in nixpkgs 86 - "django" 87 - 88 - # gevent fails to import zope.interface with Python 2.7 89 - "gevent" 90 - ]; 91 92 pythonImportsCheck = [ "debugpy" ]; 93
··· 4 , fetchFromGitHub 5 , substituteAll 6 , gdb 7 + , django 8 , flask 9 + , gevent 10 , psutil 11 , pytest-timeout 12 , pytest-xdist 13 , pytestCheckHook 14 , requests 15 + , isPy3k 16 }: 17 18 buildPythonPackage rec { 19 pname = "debugpy"; 20 + version = "1.5.0"; 21 22 src = fetchFromGitHub { 23 owner = "Microsoft"; 24 repo = pname; 25 rev = "v${version}"; 26 + sha256 = "sha256-xgxKyqtSqKITwze7DKDdkxZlq1mWM+x4C/eJlUJmYuk="; 27 }; 28 29 patches = [ ··· 65 }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}")} 66 )''; 67 68 + doCheck = isPy3k; 69 checkInputs = [ 70 + django 71 flask 72 + gevent 73 psutil 74 pytest-timeout 75 pytest-xdist 76 pytestCheckHook 77 requests 78 ]; 79 80 # Override default arguments in pytest.ini 81 pytestFlagsArray = [ "--timeout=0" "-n=$NIX_BUILD_CORES" ]; 82 83 pythonImportsCheck = [ "debugpy" ]; 84