2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy3k
|
|
|
|
, lib
|
|
|
|
|
|
|
|
# pythonPackages
|
|
|
|
, django
|
|
|
|
, pylint-plugin-utils
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
# pythonPackages for checkInputs
|
|
|
|
, coverage
|
|
|
|
, factory_boy
|
|
|
|
, pytest
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylint-django";
|
2021-10-04 12:37:57 +00:00
|
|
|
version = "2.4.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PyCQA";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-10-04 12:37:57 +00:00
|
|
|
sha256 = "sha256-bFcb5GhC7jc7jEpNlyjWa2CuCSMvQLJdnag+7mHwSb8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
pylint-plugin-utils
|
|
|
|
];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
checkInputs = [ coverage factory_boy pytest ];
|
|
|
|
|
|
|
|
# Check command taken from scripts/test.sh
|
|
|
|
# Skip test external_django_tables2_noerror_meta_class:
|
|
|
|
# requires an unpackaged django_tables2
|
|
|
|
checkPhase = ''
|
|
|
|
python pylint_django/tests/test_func.py -v -k "not tables2"
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Pylint plugin to analyze Django applications";
|
|
|
|
homepage = "https://github.com/PyCQA/pylint-django";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ kamadorueda ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|