pythonPackages.debugpy: 1.0.0b12 -> 1.0.0
Also fixes the Python 2.7 build
This commit is contained in:
parent
e7fe577d98
commit
abfbca91e7
1 changed files with 38 additions and 12 deletions
|
@ -1,19 +1,30 @@
|
||||||
{ stdenv, buildPythonPackage, fetchFromGitHub
|
{ lib
|
||||||
, substituteAll, gdb
|
, stdenv
|
||||||
, colorama, django, flask, gevent, psutil, pytest
|
, buildPythonPackage
|
||||||
, pytest-timeout, pytest_xdist, requests
|
, fetchFromGitHub
|
||||||
|
, substituteAll
|
||||||
|
, gdb
|
||||||
|
, colorama
|
||||||
|
, flask
|
||||||
|
, psutil
|
||||||
|
, pytest-timeout
|
||||||
|
, pytest_xdist
|
||||||
|
, pytestCheckHook
|
||||||
|
, requests
|
||||||
, isPy27
|
, isPy27
|
||||||
|
, django
|
||||||
|
, gevent
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "debugpy";
|
pname = "debugpy";
|
||||||
version = "1.0.0b12";
|
version = "1.0.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Microsoft";
|
owner = "Microsoft";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0sz33aq5qldl7kh4qjf5w3d08l9s77ipcj4i9wfklj8f6vf9w1wh";
|
sha256 = "1cxwbq97n5pfmq0hji1ybbc6i1jg5bjy830dq23zqxbwxxwjx98m";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -49,16 +60,31 @@ buildPythonPackage rec {
|
||||||
)'';
|
)'';
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
colorama django flask gevent psutil pytest
|
colorama
|
||||||
pytest-timeout pytest_xdist requests
|
flask
|
||||||
|
psutil
|
||||||
|
pytest-timeout
|
||||||
|
pytest_xdist
|
||||||
|
pytestCheckHook
|
||||||
|
requests
|
||||||
|
] ++ lib.optionals (!isPy27) [
|
||||||
|
django
|
||||||
|
gevent
|
||||||
];
|
];
|
||||||
|
|
||||||
# Override default arguments in pytest.ini
|
# Override default arguments in pytest.ini
|
||||||
checkPhase = "pytest --timeout 0 -n $NIX_BUILD_CORES"
|
pytestFlagsArray = [ "--timeout=0" "-n=$NIX_BUILD_CORES" ];
|
||||||
# gevent fails to import zope.interface with Python 2.7
|
|
||||||
+ stdenv.lib.optionalString isPy27 " -k 'not test_gevent'";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
disabledTests = lib.optionals isPy27 [
|
||||||
|
# django 1.11 is the last version to support Python 2.7
|
||||||
|
# and is no longer built in nixpkgs
|
||||||
|
"django"
|
||||||
|
|
||||||
|
# gevent fails to import zope.interface with Python 2.7
|
||||||
|
"gevent"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = "An implementation of the Debug Adapter Protocol for Python";
|
description = "An implementation of the Debug Adapter Protocol for Python";
|
||||||
homepage = "https://github.com/microsoft/debugpy";
|
homepage = "https://github.com/microsoft/debugpy";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
|
Loading…
Reference in a new issue