mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, coverage
|
|
, django
|
|
, factory_boy
|
|
, fetchFromGitHub
|
|
, isPy3k
|
|
, pylint-plugin-utils
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
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
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# Skip outdated tests and the one with a missing dependency (django_tables2)
|
|
"external_django_tables2_noerror_meta_class"
|
|
"external_factory_boy_noerror"
|
|
"func_noerror_foreign_key_attributes"
|
|
"func_noerror_foreign_key_key_cls_unbound"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|