12238b08ef
The test no longer exists after #112908: ``` Disabled tests path "pylint/test/test_functional.py" does not exist. Aborting ```
72 lines
1.2 KiB
Nix
72 lines
1.2 KiB
Nix
{ stdenv
|
|
, lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, installShellFiles
|
|
, astroid
|
|
, isort
|
|
, mccabe
|
|
, toml
|
|
, pytest-benchmark
|
|
, pytest-xdist
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pylint";
|
|
version = "2.7.1";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "10nrvzk1naf5ryawmi59wp99k31053sz37q3x9li2hj2cf7i1kl1";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
astroid
|
|
isort
|
|
mccabe
|
|
toml
|
|
];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/emacs/site-lisp
|
|
cp -v "elisp/"*.el $out/share/emacs/site-lisp/
|
|
installManPage man/*.1
|
|
'';
|
|
|
|
checkInputs = [
|
|
pytest-benchmark
|
|
pytest-xdist
|
|
pytestCheckHook
|
|
];
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
# calls executable in one of the tests
|
|
preCheck = ''
|
|
export PATH=$PATH:$out/bin
|
|
'';
|
|
|
|
pytestFlagsArray = [
|
|
"-n auto"
|
|
];
|
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
|
"test_parallel_execution"
|
|
"test_py3k_jobs_option"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://pylint.pycqa.org/";
|
|
description = "A bug and style checker for Python";
|
|
license = licenses.gpl1Plus;
|
|
maintainers = with maintainers; [ nand0p ];
|
|
};
|
|
}
|