2020-06-16 22:14:04 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27, mock, pytest, isort }:
|
2018-04-07 12:20:00 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-isort";
|
2020-11-29 14:04:39 +00:00
|
|
|
version = "1.2.0";
|
2018-04-07 12:20:00 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:39 +00:00
|
|
|
sha256 = "f0fcf9674f3a627b36e07466d335e82b0f7c4f9e0f7ec39f2a1750b0189d5371";
|
2018-04-07 12:20:00 +01:00
|
|
|
};
|
|
|
|
|
2019-03-11 11:42:15 +00:00
|
|
|
propagatedBuildInputs = [ isort ];
|
2018-04-07 12:20:00 +01:00
|
|
|
|
2020-06-16 22:14:04 +01:00
|
|
|
checkInputs = [ pytest ]
|
|
|
|
++ lib.optionals isPy27 [ mock ];
|
2019-03-11 11:42:15 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test -vs --cache-clear
|
|
|
|
'';
|
2018-04-07 12:20:00 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pytest plugin to perform isort checks (import ordering)";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/moccu/pytest-isort/";
|
2018-04-07 12:20:00 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|