Merge pull request #141887 from kira-bruneau/pythonPackages.debugpy
This commit is contained in:
commit
fbaffb3fca
1 changed files with 8 additions and 17 deletions
|
@ -4,26 +4,26 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, substituteAll
|
, substituteAll
|
||||||
, gdb
|
, gdb
|
||||||
|
, django
|
||||||
, flask
|
, flask
|
||||||
|
, gevent
|
||||||
, psutil
|
, psutil
|
||||||
, pytest-timeout
|
, pytest-timeout
|
||||||
, pytest-xdist
|
, pytest-xdist
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, requests
|
, requests
|
||||||
, isPy27
|
, isPy3k
|
||||||
, django
|
|
||||||
, gevent
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "debugpy";
|
pname = "debugpy";
|
||||||
version = "1.4.3";
|
version = "1.5.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Microsoft";
|
owner = "Microsoft";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-ULxVoZuMNDL0Win/+55RnbkCPZ8OI8nhSKshvJOMFQ4=";
|
sha256 = "sha256-xgxKyqtSqKITwze7DKDdkxZlq1mWM+x4C/eJlUJmYuk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -65,30 +65,21 @@ buildPythonPackage rec {
|
||||||
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}")}
|
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}")}
|
||||||
)'';
|
)'';
|
||||||
|
|
||||||
|
doCheck = isPy3k;
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
django
|
||||||
flask
|
flask
|
||||||
|
gevent
|
||||||
psutil
|
psutil
|
||||||
pytest-timeout
|
pytest-timeout
|
||||||
pytest-xdist
|
pytest-xdist
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
requests
|
requests
|
||||||
] ++ lib.optionals (!isPy27) [
|
|
||||||
django
|
|
||||||
gevent
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Override default arguments in pytest.ini
|
# Override default arguments in pytest.ini
|
||||||
pytestFlagsArray = [ "--timeout=0" "-n=$NIX_BUILD_CORES" ];
|
pytestFlagsArray = [ "--timeout=0" "-n=$NIX_BUILD_CORES" ];
|
||||||
|
|
||||||
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"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "debugpy" ];
|
pythonImportsCheck = [ "debugpy" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue