aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/pylint-plugin-utils/default.nix
blob: f2bbef2cc8c145a5e65d0354a009a88b7bc1428d (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
38
39
{ buildPythonPackage
, fetchFromGitHub
, isPy3k
, lib

# pythonPackages
, pylint
, toml
}:

buildPythonPackage rec {
  pname = "pylint-plugin-utils";
  version = "0.6";
  disabled = !isPy3k;

  src = fetchFromGitHub {
    owner = "PyCQA";
    repo = pname;
    rev = version;
    sha256 = "1zapmbczxs1phrwbd0yvpfxhljd2pyv4pi9rwggaq38lcnc325s7";
  };

  propagatedBuildInputs = [
    pylint toml
  ];

  checkPhase = ''
    python tests.py
  '';

  meta = with lib; {
    description = "Utilities and helpers for writing Pylint plugins";
    homepage = "https://github.com/PyCQA/pylint-plugin-utils";
    license = licenses.gpl2;
    maintainers = with maintainers; [
      kamadorueda
    ];
  };
}