818c48e259
GitOrigin-RevId: 14aef06d9b3ad1d07626bdbb16083b83f92dc6c1
48 lines
1 KiB
Nix
48 lines
1 KiB
Nix
{ buildPythonPackage
|
|
, fetchFromGitHub
|
|
, isPy3k
|
|
, lib
|
|
|
|
# pythonPackages
|
|
, django
|
|
, pylint-plugin-utils
|
|
|
|
# pythonPackages for checkInputs
|
|
, coverage
|
|
, factory_boy
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pylint-django";
|
|
version = "2.4.4";
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PyCQA";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-bFcb5GhC7jc7jEpNlyjWa2CuCSMvQLJdnag+7mHwSb8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
django
|
|
pylint-plugin-utils
|
|
];
|
|
|
|
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"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A Pylint plugin to analyze Django applications";
|
|
homepage = "https://github.com/PyCQA/pylint-django";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ kamadorueda ];
|
|
};
|
|
}
|