1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 flake8, 6 pycodestyle, 7 pylama, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "flake8-import-order"; 14 version = "0.18.2"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-4jlB+JLaPgwJ1xG6u7DHO8c1JC6bIWtyZhZ1ipINkA4="; 22 }; 23 24 propagatedBuildInputs = [ pycodestyle ]; 25 26 nativeCheckInputs = [ 27 flake8 28 pycodestyle 29 pylama 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ "flake8_import_order" ]; 34 35 meta = with lib; { 36 description = "Flake8 and pylama plugin that checks the ordering of import statements"; 37 homepage = "https://github.com/PyCQA/flake8-import-order"; 38 changelog = "https://github.com/PyCQA/flake8-import-order/blob/${version}/CHANGELOG.rst"; 39 license = with licenses; [ 40 lgpl3 41 mit 42 ]; 43 maintainers = [ ]; 44 }; 45}