1{ lib
2, buildPythonPackage
3, fetchPypi
4, flake8
5, flit-core
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "flake8-length";
12 version = "0.3.1";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-Dr1hTCU2G1STczXJsUPMGFYs1NpIAk1I95vxXsRTtRA=";
20 };
21
22 nativeBuildInputs = [
23 flit-core
24 ];
25
26 propagatedBuildInputs = [
27 flake8
28 ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 ];
33
34 pythonImportsCheck = [
35 "flake8_length"
36 ];
37
38 pytestFlagsArray = [
39 "tests/"
40 ];
41
42 meta = with lib; {
43 description = "Flake8 plugin for a smart line length validation";
44 homepage = "https://github.com/orsinium-labs/flake8-length";
45 changelog = "https://github.com/orsinium-labs/flake8-length/releases/tag/${version}";
46 license = licenses.mit;
47 maintainers = with maintainers; [ sauyon ];
48 };
49}