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