pythonPackages.pytest-isort: fix tests

This commit is contained in:
Jonathan Ringer 2020-06-16 14:14:04 -07:00
parent 46c455e031
commit 9b38751608

View File

@ -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