From 9b38751608bed8d346850cfb74b1bd6ff89dd33e Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Tue, 16 Jun 2020 14:14:04 -0700 Subject: [PATCH] pythonPackages.pytest-isort: fix tests --- pkgs/development/python-modules/pytest-isort/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pytest-isort/default.nix b/pkgs/development/python-modules/pytest-isort/default.nix index 4c380b312e5e..96f78426dbac 100644 --- a/pkgs/development/python-modules/pytest-isort/default.nix +++ b/pkgs/development/python-modules/pytest-isort/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchPypi, pytest, isort }: +{ lib, buildPythonPackage, fetchPypi, isPy27, mock, pytest, isort }: buildPythonPackage rec { pname = "pytest-isort"; @@ -11,7 +11,8 @@ buildPythonPackage rec { propagatedBuildInputs = [ isort ]; - checkInputs = [ pytest ]; + checkInputs = [ pytest ] + ++ lib.optionals isPy27 [ mock ]; checkPhase = '' py.test -vs --cache-clear