From becd4a584b950e6aed0e8cd854d05674791160df Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 14 May 2024 08:26:33 +0200 Subject: [PATCH] python312Packages.pylint: refactor --- .../python-modules/pylint/default.nix | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/pylint/default.nix b/pkgs/development/python-modules/pylint/default.nix index 9a1f093e5754..d6d410215173 100644 --- a/pkgs/development/python-modules/pylint/default.nix +++ b/pkgs/development/python-modules/pylint/default.nix @@ -1,23 +1,23 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ lib +, stdenv , astroid +, buildPythonPackage , dill +, fetchFromGitHub +, gitpython , isort , mccabe , platformdirs +, py +, pytest-timeout +, pytest-xdist +, pytest7CheckHook +, pythonOlder , requests , setuptools , tomli , tomlkit , typing-extensions -, gitpython -, py -, pytest-timeout -, pytest-xdist -, pytest7CheckHook }: buildPythonPackage rec { @@ -34,11 +34,11 @@ buildPythonPackage rec { hash = "sha256-LmpLt2GCzYU73BUpORHaFbGqkxyYqoPoKZpUJSChqKQ="; }; - nativeBuildInputs = [ + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ astroid dill isort @@ -47,7 +47,7 @@ buildPythonPackage rec { tomlkit ] ++ lib.optionals (pythonOlder "3.11") [ tomli - ] ++ lib.optionals (pythonOlder "3.9") [ + ] ++ lib.optionals (pythonOlder "3.10") [ typing-extensions ]; @@ -106,8 +106,8 @@ buildPythonPackage rec { ]; meta = with lib; { - homepage = "https://pylint.readthedocs.io/en/stable/"; description = "A bug and style checker for Python"; + homepage = "https://pylint.readthedocs.io/en/stable/"; changelog = "https://github.com/pylint-dev/pylint/releases/tag/v${version}"; longDescription = '' Pylint is a Python static code analysis tool which looks for programming errors, @@ -118,7 +118,7 @@ buildPythonPackage rec { - symilar: an independent similarities checker - epylint: Emacs and Flymake compatible Pylint ''; - license = licenses.gpl1Plus; + license = licenses.gpl2Plus; maintainers = with maintainers; [ ]; }; }