1{ lib, buildPythonPackage, fetchPypi, isPy3k, enum34, pycodestyle, pytest, flake8, pylama }: 2 3buildPythonPackage rec { 4 pname = "flake8-import-order"; 5 version = "0.17"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "60ea6674c77e4d916071beabf2b31b9b45e2f5b3bbda48a34db65766a5b25678"; 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}