pythonPackages.pytest-isort: fix tests
This commit is contained in:
parent
46c455e031
commit
9b38751608
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, pytest, isort }:
|
{ lib, buildPythonPackage, fetchPypi, isPy27, mock, pytest, isort }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pytest-isort";
|
pname = "pytest-isort";
|
||||||
@ -11,7 +11,8 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [ isort ];
|
propagatedBuildInputs = [ isort ];
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytest ]
|
||||||
|
++ lib.optionals isPy27 [ mock ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
py.test -vs --cache-clear
|
py.test -vs --cache-clear
|
||||||
|
Loading…
x
Reference in New Issue
Block a user