From 3768d6bebd83aef6b63af2f387d9ac5fefaefda9 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 4 Jan 2026 20:52:07 +0000 Subject: [PATCH] python3Packages.pylint: 4.0.2 -> 4.0.4 Diff: https://github.com/pylint-dev/pylint/compare/v4.0.2...v4.0.4 Changelog: https://github.com/pylint-dev/pylint/releases/tag/v4.0.4 --- .../python-modules/pylint/default.nix | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/pylint/default.nix b/pkgs/development/python-modules/pylint/default.nix index b53e0011d383..e8b0eed334f2 100644 --- a/pkgs/development/python-modules/pylint/default.nix +++ b/pkgs/development/python-modules/pylint/default.nix @@ -20,20 +20,19 @@ tomli, tomlkit, typing-extensions, + writableTmpDirAsHomeHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pylint"; - version = "4.0.2"; + version = "4.0.4"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "pylint-dev"; repo = "pylint"; - tag = "v${version}"; - hash = "sha256-DzS5ORhFWmA+eEhGDdpXdHLgWTfw198S7pQueBk44Cw="; + tag = "v${finalAttrs.version}"; + hash = "sha256-mKI/sRYl2ZwZ3JklmqBTs7vRG9EA4zDHaW61d/Xozb4="; }; build-system = [ setuptools ]; @@ -58,6 +57,7 @@ buildPythonPackage rec { pytest7CheckHook requests typing-extensions + writableTmpDirAsHomeHook ]; pytestFlags = [ @@ -69,10 +69,6 @@ buildPythonPackage rec { "-v" ]; - preCheck = '' - export HOME=$TEMPDIR - ''; - disabledTestPaths = [ "tests/benchmark" # tests miss multiple input files @@ -109,7 +105,7 @@ buildPythonPackage rec { meta = { description = "Bug and style checker for Python"; homepage = "https://pylint.readthedocs.io/en/stable/"; - changelog = "https://github.com/pylint-dev/pylint/releases/tag/v${version}"; + changelog = "https://github.com/pylint-dev/pylint/releases/tag/${finalAttrs.src.tag}"; longDescription = '' Pylint is a Python static code analysis tool which looks for programming errors, helps enforcing a coding standard, sniffs for code smells and offers simple @@ -123,4 +119,4 @@ buildPythonPackage rec { maintainers = [ ]; mainProgram = "pylint"; }; -} +})