summary refs log tree commit diff
path: root/pkgs/development/python-modules/pylint-django/default.nix
blob: 978394e60e27a7e4d1148c35f1cc0d1e82e83027 (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
, django
, factory-boy
, fetchFromGitHub
, pylint-plugin-utils
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "pylint-django";
  version = "2.5.3";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "PyCQA";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-5xEXjNMkOetRM9NDz0S4DsC6v39YQi34s2s+Fs56hYU=";
  };

  propagatedBuildInputs = [
    django
    pylint-plugin-utils
  ];

  nativeCheckInputs = [
    factory-boy
    pytestCheckHook
  ];

  disabledTests = [
    # AttributeError, AssertionError
    "external_django_tables2_noerror_meta_class"
    "external_tastypie_noerror_foreign_key"
    "func_noerror_model_unicode_lambda"
    "0001_noerror_initial"
  ];

  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 ];
  };
}