From 79e0cc2369bd8536b662ae70a0eb4ff9f0bcd45b Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Wed, 5 Jan 2022 12:25:54 -0800 Subject: [PATCH] python310Packages.subunit: fix tests, again --- pkgs/development/python-modules/subunit/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/subunit/default.nix b/pkgs/development/python-modules/subunit/default.nix index a7d8ea4aa8fe..704a4cb924ac 100644 --- a/pkgs/development/python-modules/subunit/default.nix +++ b/pkgs/development/python-modules/subunit/default.nix @@ -4,7 +4,7 @@ , cppunit , pkg-config , subunit -, pythonAtLeast +, pythonOlder # python dependencies , fixtures @@ -12,6 +12,7 @@ , pytest , testscenarios , testtools +, unittest2 }: buildPythonPackage { @@ -21,10 +22,10 @@ buildPythonPackage { buildInputs = [ check cppunit ]; propagatedBuildInputs = [ testtools ]; - checkInputs = [ testscenarios hypothesis fixtures pytest ]; + checkInputs = [ testscenarios hypothesis fixtures pytest unittest2 ]; # requires unittest2, which no longer supported in 3.10 - doCheck = pythonAtLeast "3.10"; + doCheck = pythonOlder "3.10"; # ignore tests which call shell code, or call methods which haven't been implemented checkPhase = '' pytest python/subunit \