aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/pylint/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pylint/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/pylint/default.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pylint/default.nix b/nixpkgs/pkgs/development/python-modules/pylint/default.nix
index c596b4042cc..6babcb15ba4 100644
--- a/nixpkgs/pkgs/development/python-modules/pylint/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/pylint/default.nix
@@ -1,22 +1,22 @@
{ stdenv, lib, buildPythonPackage, fetchPypi, pythonOlder, astroid,
- isort, mccabe, pytestCheckHook, pytestrunner }:
+ isort, mccabe, pytestCheckHook, pytest-benchmark, pytestrunner, toml }:
buildPythonPackage rec {
pname = "pylint";
- version = "2.4.4";
+ version = "2.5.3";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
- sha256 = "3db5468ad013380e987410a8d6956226963aed94ecb5f9d3a28acca6d9ac36cd";
+ sha256 = "7dd78437f2d8d019717dbf287772d0b2dbdfd13fc016aa7faa08d67bccc46adc";
};
nativeBuildInputs = [ pytestrunner ];
- checkInputs = [ pytestCheckHook ];
+ checkInputs = [ pytestCheckHook pytest-benchmark ];
- propagatedBuildInputs = [ astroid isort mccabe ];
+ propagatedBuildInputs = [ astroid isort mccabe toml ];
postPatch = lib.optionalString stdenv.isDarwin ''
# Remove broken darwin test
@@ -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 = ''