about summary refs log tree commit diff
path: root/pkgs/development/python-modules/flake8-length/default.nix
blob: 6f82b8dd50be45ff6224e200b6b393eb70884737 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, buildPythonPackage
, pythonOlder
, flake8
, pytestCheckHook
, fetchPypi
}:

buildPythonPackage rec {
  pname = "flake8-length";
  version = "0.3.0";
  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "6e3c068005b0b3b5c8345923fe3e9a107c980baa1354dd19d820018f87409427";
  };

  propagatedBuildInputs = [
    flake8
  ];

  pythonImportsCheck = [
    "flake8_length"
  ];

  checkInputs = [ pytestCheckHook ];

  pytestFlagsArray = [ "tests/" ];

  meta = {
    description = "Flake8 plugin for a smart line length validation";
    homepage = "https://github.com/orsinium-labs/flake8-length";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ sauyon ];
  };
}