2018-03-01 11:08:13 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, enum34, pycodestyle, pytest, flake8, pylama }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flake8-import-order";
|
2018-04-04 18:08:24 +00:00
|
|
|
version = "0.17.1";
|
2018-03-01 11:08:13 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-04-04 18:08:24 +00:00
|
|
|
sha256 = "68d430781a9ef15c85a0121500cf8462f1a4bc7672acb2a32bfdbcab044ae0b7";
|
2018-03-01 11:08:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pycodestyle ] ++ lib.optional (!isPy3k) enum34;
|
|
|
|
|
|
|
|
checkInputs = [ pytest flake8 pycodestyle pylama ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest --strict
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Flake8 and pylama plugin that checks the ordering of import statements";
|
|
|
|
homepage = https://github.com/PyCQA/flake8-import-order;
|
|
|
|
license = with licenses; [ lgpl3 mit ];
|
|
|
|
};
|
|
|
|
}
|