python3Packages.pylint: fix build and tests
This commit is contained in:
parent
f25b128071
commit
27f0dabfbf
1 changed files with 10 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
{ stdenv, lib, buildPythonPackage, fetchPypi, pythonOlder, astroid,
|
||||
isort, mccabe, pytestCheckHook, pytestrunner }:
|
||||
isort, mccabe, pytestCheckHook, pytest-benchmark, pytestrunner, toml }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pylint";
|
||||
|
@ -12,9 +12,9 @@ buildPythonPackage rec {
|
|||
sha256 = "b95e31850f3af163c2283ed40432f053acbc8fc6eba6a069cb518d9dbf71848c";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pytestrunner ];
|
||||
nativeBuildInputs = [ pytestrunner toml ];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
checkInputs = [ pytestCheckHook pytest-benchmark ];
|
||||
|
||||
propagatedBuildInputs = [ astroid isort mccabe ];
|
||||
|
||||
|
@ -26,11 +26,18 @@ buildPythonPackage rec {
|
|||
disabledTests = [
|
||||
# https://github.com/PyCQA/pylint/issues/3198
|
||||
"test_by_module_statement_value"
|
||||
# has issues with local directories
|
||||
"test_version"
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
"test_parallel_execution"
|
||||
"test_py3k_jobs_option"
|
||||
];
|
||||
|
||||
# calls executable in one of the tests
|
||||
preCheck = ''
|
||||
export PATH=$PATH:$out/bin
|
||||
'';
|
||||
|
||||
dontUseSetuptoolsCheck = true;
|
||||
|
||||
postInstall = ''
|
||||
|
|
Loading…
Reference in a new issue