From 5916b9637048446755629c84ae6f13361f623d13 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Tue, 8 Sep 2020 18:12:19 -0700 Subject: [PATCH] python3Packages.executor: 21.3 -> 23.1, fix tests --- .../python-modules/executor/default.nix | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/executor/default.nix b/pkgs/development/python-modules/executor/default.nix index e36c0e41c45..3e14074f186 100644 --- a/pkgs/development/python-modules/executor/default.nix +++ b/pkgs/development/python-modules/executor/default.nix @@ -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 { pname = "executor"; - version = "21.3"; + version = "23.1"; disabled = isPy27; src = fetchFromGitHub { owner = "xolox"; repo = "python-executor"; rev = version; - sha256 = "0rc14vjx3d6irfaw0pczzw1pn0xjl7xikv32hc1fvxv2ibnldv5d"; + sha256 = "1jfmagw126di0qd82bydwvryqcxc54pqja3rbx3ny3fv1ahi5s7k"; }; propagatedBuildInputs = [ coloredlogs property-manager fasteners ]; - checkInputs = [ pytest mock virtualenv ]; + checkInputs = [ pytestCheckHook mock virtualenv ]; # ignore impure tests - checkPhase = '' - pytest . -k "not option and not retry \ - and not remote and not ssh \ - and not foreach and not local_context" - ''; + disabledTests = [ + "option" + "retry" + "remote" + "ssh" + "foreach" + "local_context" + "release" # meant to be ran on ubuntu to succeed + ]; meta = with lib; { description = "Programmer friendly subprocess wrapper";