python: pylint: 2.3.1 -> 2.4.2
This commit is contained in:
parent
b4ef5c479f
commit
fd5e7da1f8
@ -1,20 +1,20 @@
|
|||||||
{ stdenv, lib, buildPythonPackage, fetchPypi, pythonOlder, astroid,
|
{ stdenv, lib, buildPythonPackage, fetchPypi, pythonOlder, astroid,
|
||||||
isort, mccabe, pytest, pytestrunner }:
|
isort, mccabe, pytestCheckHook, pytestrunner }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pylint";
|
pname = "pylint";
|
||||||
version = "2.3.1";
|
version = "2.4.2";
|
||||||
|
|
||||||
disabled = pythonOlder "3.4";
|
disabled = pythonOlder "3.4";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1wgzq0da87m7708hrc9h4bc5m4z2p7379i4xyydszasmjns3sgkj";
|
sha256 = "7edbae11476c2182708063ac387a8f97c760d9cfe36a5ede0ca996f90cf346c8";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pytestrunner ];
|
nativeBuildInputs = [ pytestrunner ];
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ astroid isort mccabe ];
|
propagatedBuildInputs = [ astroid isort mccabe ];
|
||||||
|
|
||||||
@ -23,17 +23,15 @@ buildPythonPackage rec {
|
|||||||
rm -vf pylint/test/test_functional.py
|
rm -vf pylint/test/test_functional.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
disabledTests = [
|
||||||
pytest pylint/test -k "not ${lib.concatStringsSep " and not " (
|
# https://github.com/PyCQA/pylint/issues/3198
|
||||||
# Broken tests
|
"test_by_module_statement_value"
|
||||||
[ "member_checks_py37" "iterable_context_py36" ] ++
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
# Disable broken darwin tests
|
"test_parallel_execution"
|
||||||
lib.optionals stdenv.isDarwin [
|
"test_py3k_jobs_option"
|
||||||
"test_parallel_execution"
|
];
|
||||||
"test_py3k_jobs_option"
|
|
||||||
]
|
dontUseSetuptoolsCheck = true;
|
||||||
)}"
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/emacs/site-lisp
|
mkdir -p $out/share/emacs/site-lisp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user