1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flake8,
6 pycodestyle,
7 pylama,
8 pytestCheckHook,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "flake8-import-order";
14 version = "0.19.2";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "PyCQA";
19 repo = "flake8-import-order";
20 tag = version;
21 hash = "sha256-mXw3+pQMr2Ut1prj9sCZc4jyErDOyWJgq6OBPU1nZxs=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ pycodestyle ];
27
28 nativeCheckInputs = [
29 flake8
30 pycodestyle
31 pylama
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "flake8_import_order" ];
36
37 meta = {
38 description = "Flake8 and pylama plugin that checks the ordering of import statements";
39 homepage = "https://github.com/PyCQA/flake8-import-order";
40 changelog = "https://github.com/PyCQA/flake8-import-order/blob/${version}/CHANGELOG.rst";
41 license = lib.licenses.lgpl3Only;
42 maintainers = [ ];
43 };
44}