1{ lib
2, buildPythonPackage
3, django
4, factory-boy
5, fetchFromGitHub
6, pylint-plugin-utils
7, pytestCheckHook
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "pylint-django";
13 version = "2.5.3";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "PyCQA";
20 repo = pname;
21 rev = "v${version}";
22 hash = "sha256-5xEXjNMkOetRM9NDz0S4DsC6v39YQi34s2s+Fs56hYU=";
23 };
24
25 propagatedBuildInputs = [
26 django
27 pylint-plugin-utils
28 ];
29
30 nativeCheckInputs = [
31 factory-boy
32 pytestCheckHook
33 ];
34
35 disabledTests = [
36 # AttributeError, AssertionError
37 "external_django_tables2_noerror_meta_class"
38 "external_tastypie_noerror_foreign_key"
39 "func_noerror_model_unicode_lambda"
40 "0001_noerror_initial"
41 ];
42
43 pythonImportsCheck = [
44 "pylint_django"
45 ];
46
47 meta = with lib; {
48 description = "Pylint plugin to analyze Django applications";
49 homepage = "https://github.com/PyCQA/pylint-django";
50 license = licenses.gpl2Plus;
51 maintainers = with maintainers; [ kamadorueda ];
52 };
53}