summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/flake8-length/default.nix
blob: 355f8e7881ff1d6194a3fa035ba8451d1ae8a814 (plain)
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,
  fetchPypi,
  flake8,
  flit-core,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "flake8-length";
  version = "0.3.1";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-Dr1hTCU2G1STczXJsUPMGFYs1NpIAk1I95vxXsRTtRA=";
  };

  nativeBuildInputs = [ flit-core ];

  propagatedBuildInputs = [ flake8 ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "flake8_length" ];

  enabledTestPaths = [ "tests/" ];

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