python3Packages.pylint: 2.7.4 -> 2.10.2

This commit is contained in:
Martin Weinelt 2021-08-26 21:32:41 +02:00
parent 35acf3026b
commit c29f6c9a6f

View File

@ -1,12 +1,13 @@
{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, pythonOlder
, installShellFiles
, astroid
, isort
, mccabe
, platformdirs
, toml
, pytest-benchmark
, pytest-xdist
@ -15,13 +16,15 @@
buildPythonPackage rec {
pname = "pylint";
version = "2.7.4";
version = "2.10.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "bd38914c7731cdc518634a8d3c5585951302b6e2b6de60fbb3f7a0220e21eeee";
src = fetchFromGitHub {
owner = "PyCQA";
repo = pname;
rev = "v${version}";
sha256 = "sha256-hkrkgUdC5LO1oSPFL6gvIk0zFpMw45gCmnoRbdPZuRs=";
};
nativeBuildInputs = [
@ -32,6 +35,7 @@ buildPythonPackage rec {
astroid
isort
mccabe
platformdirs
toml
];
@ -58,6 +62,12 @@ buildPythonPackage rec {
"-n auto"
];
disabledTestPaths = [
# tests miss multiple input files
# FileNotFoundError: [Errno 2] No such file or directory
"tests/pyreverse/test_writer.py"
];
disabledTests = lib.optionals stdenv.isDarwin [
"test_parallel_execution"
"test_py3k_jobs_option"