2018-03-01 12:08:13 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, enum34, pycodestyle, pytest, flake8, pylama }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flake8-import-order";
|
2019-03-23 12:02:23 +01:00
|
|
|
version = "0.18.1";
|
2018-03-01 12:08:13 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-03-23 12:02:23 +01:00
|
|
|
sha256 = "14kfvsagqc6lrplvf3x58ia6x744bk8fj91wmk0hcipa8naw73d2";
|
2018-03-01 12:08:13 +01: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";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/PyCQA/flake8-import-order";
|
2018-03-01 12:08:13 +01:00
|
|
|
license = with licenses; [ lgpl3 mit ];
|
|
|
|
};
|
|
|
|
}
|