2020-01-10 06:35:46 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy3k
|
|
|
|
, lib
|
|
|
|
|
|
|
|
# pythonPackages
|
|
|
|
, django
|
|
|
|
, pylint-plugin-utils
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylint-django";
|
2020-07-18 08:43:18 +01:00
|
|
|
version = "2.1.0";
|
2020-01-10 06:35:46 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PyCQA";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-07-18 08:43:18 +01:00
|
|
|
sha256 = "1gvbh2a480x3ddrq6xzray7kdsz8nb8n16xm2lf03w2nqnsdbkwy";
|
2020-01-10 06:35:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
pylint-plugin-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
# Testing requires checkout from other repositories
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Pylint plugin to analyze Django applications";
|
|
|
|
homepage = "https://github.com/PyCQA/pylint-django";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
kamadorueda
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|