1{ buildPythonPackage
2, fetchFromGitHub
3, isPy3k
4, lib
5
6# pythonPackages
7, django
8, pylint-plugin-utils
9
10# pythonPackages for checkInputs
11, coverage
12, factory_boy
13, pytest
14}:
15
16buildPythonPackage rec {
17 pname = "pylint-django";
18 version = "2.4.3";
19 disabled = !isPy3k;
20
21 src = fetchFromGitHub {
22 owner = "PyCQA";
23 repo = pname;
24 rev = "v${version}";
25 sha256 = "1mybq9jynypxbaxj921s3sx8dph8n3hmipmv4nla1g9h07g9g02z";
26 };
27
28 propagatedBuildInputs = [
29 django
30 pylint-plugin-utils
31 ];
32
33 checkInputs = [ coverage factory_boy pytest ];
34
35 # Check command taken from scripts/test.sh
36 # Skip test external_django_tables2_noerror_meta_class:
37 # requires an unpackaged django_tables2
38 checkPhase = ''
39 python pylint_django/tests/test_func.py -v -k "not tables2"
40 '';
41
42 meta = with lib; {
43 description = "A Pylint plugin to analyze Django applications";
44 homepage = "https://github.com/PyCQA/pylint-django";
45 license = licenses.gpl2Plus;
46 maintainers = with maintainers; [ kamadorueda ];
47 };
48}