about summary refs log tree commit diff
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.nix38
1 files changed, 24 insertions, 14 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pylint/default.nix b/nixpkgs/pkgs/development/python-modules/pylint/default.nix
index 3bc20493dd64..39207c063f39 100644
--- a/nixpkgs/pkgs/development/python-modules/pylint/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/pylint/default.nix
@@ -3,16 +3,18 @@
 , buildPythonPackage
 , fetchFromGitHub
 , pythonOlder
-, installShellFiles
 , astroid
 , dill
 , isort
 , mccabe
 , platformdirs
+, requests
+, setuptools
 , tomli
 , tomlkit
 , typing-extensions
-, GitPython
+, gitpython
+, py
 , pytest-timeout
 , pytest-xdist
 , pytestCheckHook
@@ -20,8 +22,8 @@
 
 buildPythonPackage rec {
   pname = "pylint";
-  version = "2.14.5";
-  format = "setuptools";
+  version = "2.16.2";
+  format = "pyproject";
 
   disabled = pythonOlder "3.7.2";
 
@@ -29,11 +31,11 @@ buildPythonPackage rec {
     owner = "PyCQA";
     repo = pname;
     rev = "v${version}";
-    sha256 = "sha256-JTFGplqIA6WavwzKOkrm1rHBKNRrplBPvAdEkb/fTlI=";
+    hash = "sha256-xNCGf4CsxEKScIn6dl2Ka31P6bhMo5fTs9TIQz+vPiM=";
   };
 
   nativeBuildInputs = [
-    installShellFiles
+    setuptools
   ];
 
   propagatedBuildInputs = [
@@ -49,21 +51,25 @@ buildPythonPackage rec {
     typing-extensions
   ];
 
-  postInstall = ''
-    mkdir -p $out/share/emacs/site-lisp
-    cp -v "elisp/"*.el $out/share/emacs/site-lisp/
-    installManPage man/*.1
-  '';
-
-  checkInputs = [
-    GitPython
+  nativeCheckInputs = [
+    gitpython
     # https://github.com/PyCQA/pylint/blob/main/requirements_test_min.txt
+    py
     pytest-timeout
     pytest-xdist
     pytestCheckHook
+    requests
     typing-extensions
   ];
 
+  pytestFlagsArray = [
+    # DeprecationWarning: pyreverse will drop support for resolving and
+    # displaying implemented interfaces in pylint 3.0. The
+    # implementation relies on the '__implements__'  attribute proposed
+    # in PEP 245, which was rejected in 2006.
+    "-W" "ignore::DeprecationWarning"
+  ];
+
   dontUseSetuptoolsCheck = true;
 
   preCheck = ''
@@ -87,6 +93,10 @@ buildPythonPackage rec {
     "test_output_of_callback_options"
     # Failed: DID NOT WARN. No warnings of type (<class 'UserWarning'>,) were emitted. The list of emitted warnings is: [].
     "test_save_and_load_not_a_linter_stats"
+    # Truncated string expectation mismatch
+    "test_truncated_compare"
+    # AssertionError: assert [('specializa..., 'Ancestor')] == [('aggregatio..., 'Ancestor')]
+    "test_functional_relation_extraction"
   ] ++ lib.optionals stdenv.isDarwin [
     "test_parallel_execution"
     "test_py3k_jobs_option"