about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pylint-django/default.nix
blob: 291ef8fba62efa4a5ebd541fa4e630afde6bb822 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ lib
, buildPythonPackage
, coverage
, django
, factory_boy
, fetchFromGitHub
, isPy3k
, pylint-plugin-utils
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "pylint-django";
  version = "2.5.0";
  disabled = !isPy3k;

  src = fetchFromGitHub {
    owner = "PyCQA";
    repo = pname;
    rev = "v${version}";
    sha256 = "1r48dss9qnzlifwy5ylkffdw35aaajmil0486mav056jm1vmi2pr";
  };

  propagatedBuildInputs = [
    django
    pylint-plugin-utils
  ];

  checkInputs = [
    coverage
    factory_boy
    pytestCheckHook
  ];

  disabledTests = [
    # Skip outdated tests and the one with a missing dependency (django_tables2)
    "external_django_tables2_noerror_meta_class"
    "external_factory_boy_noerror"
    "func_noerror_foreign_key_attributes"
    "func_noerror_foreign_key_key_cls_unbound"
  ];

  pythonImportsCheck = [
    "pylint_django"
  ];

  meta = with lib; {
    description = "Pylint plugin to analyze Django applications";
    homepage = "https://github.com/PyCQA/pylint-django";
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ kamadorueda ];
  };
}