1{ lib, buildPythonPackage, fetchPypi, isPy3k, enum34, pycodestyle, pytest, flake8, pylama }: 2 3buildPythonPackage rec { 4 pname = "flake8-import-order"; 5 version = "0.18.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "14kfvsagqc6lrplvf3x58ia6x744bk8fj91wmk0hcipa8naw73d2"; 10 }; 11 12 propagatedBuildInputs = [ pycodestyle ] ++ lib.optional (!isPy3k) enum34; 13 14 checkInputs = [ pytest flake8 pycodestyle pylama ]; 15 16 checkPhase = '' 17 pytest --strict 18 ''; 19 20 meta = with lib; { 21 description = "Flake8 and pylama plugin that checks the ordering of import statements"; 22 homepage = "https://github.com/PyCQA/flake8-import-order"; 23 license = with licenses; [ lgpl3 mit ]; 24 }; 25}