nixpkgs-suyu/pkgs/development/python-modules/pylint/default.nix
Martin Weinelt 7bd65d54f7 treewide: remove nand0p as maintainer
While looking at the sphinx package I noticed it was heavily
undermaintained, which is when we noticed nand0p has been inactive for
roughly 18 months. It is therefore prudent to assume they will not be
maintaining their packages, modules and tests.

- Their last contribution to nixpkgs was in 2019/12
- On 2021/05/08 I wrote them an email to the address listed in the
  maintainer-list, which they didn't reply to.
2021-05-17 01:50:49 +02:00

72 lines
1.2 KiB
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, installShellFiles
, astroid
, isort
, mccabe
, toml
, pytest-benchmark
, pytest-xdist
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pylint";
version = "2.7.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "0e21d3b80b96740909d77206d741aa3ce0b06b41be375d92e1f3244a274c1f8a";
};
nativeBuildInputs = [
installShellFiles
];
propagatedBuildInputs = [
astroid
isort
mccabe
toml
];
postInstall = ''
mkdir -p $out/share/emacs/site-lisp
cp -v "elisp/"*.el $out/share/emacs/site-lisp/
installManPage man/*.1
'';
checkInputs = [
pytest-benchmark
pytest-xdist
pytestCheckHook
];
dontUseSetuptoolsCheck = true;
# calls executable in one of the tests
preCheck = ''
export PATH=$PATH:$out/bin
'';
pytestFlagsArray = [
"-n auto"
];
disabledTests = lib.optionals stdenv.isDarwin [
"test_parallel_execution"
"test_py3k_jobs_option"
];
meta = with lib; {
homepage = "https://pylint.pycqa.org/";
description = "A bug and style checker for Python";
license = licenses.gpl1Plus;
maintainers = with maintainers; [ ];
};
}