1{ lib
2, buildPythonPackage
3, pythonOlder
4, flake8
5, pytestCheckHook
6, fetchPypi
7}:
8
9buildPythonPackage rec {
10 pname = "flake8-length";
11 version = "0.3.0";
12 disabled = pythonOlder "3.6";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "6e3c068005b0b3b5c8345923fe3e9a107c980baa1354dd19d820018f87409427";
17 };
18
19 propagatedBuildInputs = [
20 flake8
21 ];
22
23 pythonImportsCheck = [
24 "flake8_length"
25 ];
26
27 checkInputs = [ pytestCheckHook ];
28
29 pytestFlagsArray = [ "tests/" ];
30
31 meta = {
32 description = "Flake8 plugin for a smart line length validation";
33 homepage = "https://github.com/orsinium-labs/flake8-length";
34 license = lib.licenses.mit;
35 maintainers = with lib.maintainers; [ sauyon ];
36 };
37}