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