python3Packages.executor: 21.3 -> 23.1, fix tests
This commit is contained in:
parent
195842dd86
commit
5916b96370
|
@ -1,27 +1,31 @@
|
||||||
{ lib, buildPythonPackage, fetchFromGitHub, isPy27, coloredlogs, property-manager, fasteners, pytest, mock, virtualenv }:
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy27, coloredlogs, property-manager, fasteners, pytestCheckHook, mock, virtualenv }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "executor";
|
pname = "executor";
|
||||||
version = "21.3";
|
version = "23.1";
|
||||||
disabled = isPy27;
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "xolox";
|
owner = "xolox";
|
||||||
repo = "python-executor";
|
repo = "python-executor";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0rc14vjx3d6irfaw0pczzw1pn0xjl7xikv32hc1fvxv2ibnldv5d";
|
sha256 = "1jfmagw126di0qd82bydwvryqcxc54pqja3rbx3ny3fv1ahi5s7k";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ coloredlogs property-manager fasteners ];
|
propagatedBuildInputs = [ coloredlogs property-manager fasteners ];
|
||||||
|
|
||||||
checkInputs = [ pytest mock virtualenv ];
|
checkInputs = [ pytestCheckHook mock virtualenv ];
|
||||||
|
|
||||||
# ignore impure tests
|
# ignore impure tests
|
||||||
checkPhase = ''
|
disabledTests = [
|
||||||
pytest . -k "not option and not retry \
|
"option"
|
||||||
and not remote and not ssh \
|
"retry"
|
||||||
and not foreach and not local_context"
|
"remote"
|
||||||
'';
|
"ssh"
|
||||||
|
"foreach"
|
||||||
|
"local_context"
|
||||||
|
"release" # meant to be ran on ubuntu to succeed
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Programmer friendly subprocess wrapper";
|
description = "Programmer friendly subprocess wrapper";
|
||||||
|
|
Loading…
Reference in a new issue