3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.pylint: 2.7.4 -> 2.10.2

This commit is contained in:
Martin Weinelt 2021-08-26 21:32:41 +02:00
parent 47271a6855
commit 6f3ffc57fe

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"