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