2021-02-25 01:10:34 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, installShellFiles
|
|
|
|
, astroid
|
|
|
|
, isort
|
|
|
|
, mccabe
|
|
|
|
, toml
|
|
|
|
, pytest-benchmark
|
|
|
|
, pytest-xdist
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2017-03-03 01:51:55 +00:00
|
|
|
|
2017-09-06 16:28:21 +01:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylint";
|
2021-07-25 08:47:40 +01:00
|
|
|
version = "2.7.4";
|
2018-07-24 16:53:48 +01:00
|
|
|
|
2021-02-25 01:10:34 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2017-09-06 16:28:21 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-07-25 08:47:40 +01:00
|
|
|
sha256 = "bd38914c7731cdc518634a8d3c5585951302b6e2b6de60fbb3f7a0220e21eeee";
|
2017-09-06 16:28:21 +01:00
|
|
|
};
|
|
|
|
|
2021-02-25 01:10:34 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
];
|
2019-03-26 14:32:21 +00:00
|
|
|
|
2021-02-25 01:10:34 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
astroid
|
|
|
|
isort
|
|
|
|
mccabe
|
|
|
|
toml
|
|
|
|
];
|
2017-09-06 16:28:21 +01:00
|
|
|
|
2021-02-25 01:10:34 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/emacs/site-lisp
|
|
|
|
cp -v "elisp/"*.el $out/share/emacs/site-lisp/
|
|
|
|
installManPage man/*.1
|
2017-09-06 16:28:21 +01:00
|
|
|
'';
|
|
|
|
|
2021-02-25 01:10:34 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest-benchmark
|
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
dontUseSetuptoolsCheck = true;
|
2019-10-17 08:41:52 +01:00
|
|
|
|
2020-06-08 20:42:14 +01:00
|
|
|
# calls executable in one of the tests
|
|
|
|
preCheck = ''
|
|
|
|
export PATH=$PATH:$out/bin
|
|
|
|
'';
|
|
|
|
|
2021-02-25 01:10:34 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-n auto"
|
|
|
|
];
|
2017-09-06 16:28:21 +01:00
|
|
|
|
2021-02-25 01:10:34 +00:00
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
|
|
|
"test_parallel_execution"
|
|
|
|
"test_py3k_jobs_option"
|
|
|
|
];
|
|
|
|
|
2018-08-31 02:14:41 +01:00
|
|
|
meta = with lib; {
|
2020-09-19 05:20:00 +01:00
|
|
|
homepage = "https://pylint.pycqa.org/";
|
2017-09-06 16:28:21 +01:00
|
|
|
description = "A bug and style checker for Python";
|
|
|
|
license = licenses.gpl1Plus;
|
2021-05-14 15:00:41 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-09-06 16:28:21 +01:00
|
|
|
};
|
|
|
|
}
|