3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pylint/default.nix

49 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, lib, buildPythonPackage, fetchPypi, pythonOlder, astroid,
2019-10-17 08:41:52 +01:00
isort, mccabe, pytestCheckHook, pytestrunner }:
2017-09-06 16:28:21 +01:00
buildPythonPackage rec {
pname = "pylint";
2019-11-19 14:35:38 +00:00
version = "2.4.4";
2018-07-24 16:53:48 +01:00
disabled = pythonOlder "3.4";
2017-09-06 16:28:21 +01:00
src = fetchPypi {
inherit pname version;
2019-11-19 14:35:38 +00:00
sha256 = "3db5468ad013380e987410a8d6956226963aed94ecb5f9d3a28acca6d9ac36cd";
2017-09-06 16:28:21 +01:00
};
nativeBuildInputs = [ pytestrunner ];
2019-10-17 08:41:52 +01:00
checkInputs = [ pytestCheckHook ];
2017-09-06 16:28:21 +01:00
2018-07-24 16:53:48 +01:00
propagatedBuildInputs = [ astroid isort mccabe ];
2017-09-06 16:28:21 +01:00
2018-08-31 02:14:41 +01:00
postPatch = lib.optionalString stdenv.isDarwin ''
2018-07-24 16:53:48 +01:00
# Remove broken darwin test
2017-09-06 16:28:21 +01:00
rm -vf pylint/test/test_functional.py
'';
2019-10-17 08:41:52 +01:00
disabledTests = [
# https://github.com/PyCQA/pylint/issues/3198
"test_by_module_statement_value"
] ++ lib.optionals stdenv.isDarwin [
"test_parallel_execution"
"test_py3k_jobs_option"
];
dontUseSetuptoolsCheck = true;
2017-09-06 16:28:21 +01:00
postInstall = ''
mkdir -p $out/share/emacs/site-lisp
cp "elisp/"*.el $out/share/emacs/site-lisp/
'';
2018-08-31 02:14:41 +01:00
meta = with lib; {
homepage = https://github.com/PyCQA/pylint;
2017-09-06 16:28:21 +01:00
description = "A bug and style checker for Python";
platforms = platforms.all;
license = licenses.gpl1Plus;
maintainers = with maintainers; [ nand0p ];
};
}