python: pylint: 2.3.1 -> 2.4.2
This commit is contained in:
parent
b4ef5c479f
commit
fd5e7da1f8
1 changed files with 13 additions and 15 deletions
|
@ -1,20 +1,20 @@
|
|||
{ stdenv, lib, buildPythonPackage, fetchPypi, pythonOlder, astroid,
|
||||
isort, mccabe, pytest, pytestrunner }:
|
||||
isort, mccabe, pytestCheckHook, pytestrunner }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pylint";
|
||||
version = "2.3.1";
|
||||
version = "2.4.2";
|
||||
|
||||
disabled = pythonOlder "3.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1wgzq0da87m7708hrc9h4bc5m4z2p7379i4xyydszasmjns3sgkj";
|
||||
sha256 = "7edbae11476c2182708063ac387a8f97c760d9cfe36a5ede0ca996f90cf346c8";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pytestrunner ];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
propagatedBuildInputs = [ astroid isort mccabe ];
|
||||
|
||||
|
@ -23,17 +23,15 @@ buildPythonPackage rec {
|
|||
rm -vf pylint/test/test_functional.py
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
pytest pylint/test -k "not ${lib.concatStringsSep " and not " (
|
||||
# Broken tests
|
||||
[ "member_checks_py37" "iterable_context_py36" ] ++
|
||||
# Disable broken darwin tests
|
||||
lib.optionals stdenv.isDarwin [
|
||||
"test_parallel_execution"
|
||||
"test_py3k_jobs_option"
|
||||
]
|
||||
)}"
|
||||
'';
|
||||
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;
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/emacs/site-lisp
|
||||
|
|
Loading…
Reference in a new issue