From 3d156cdef4744cb7101090b1ffb70513dafff000 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Sat, 7 Mar 2026 12:12:03 +0100 Subject: [PATCH] Revert "python3Packages.batinfo: 0.4.2 -> 2.0" This is a broken tag. 2.0 actually refers to 0.2. The latest version is 0.4.2 Because of this bulk updates should be skipped for this package. This reverts commit d246e946ce821f48d0dc65fe5fa9de428c98fc7f. Signed-off-by: Sefa Eyeoglu --- pkgs/development/python-modules/batinfo/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/batinfo/default.nix b/pkgs/development/python-modules/batinfo/default.nix index 16b277994a9b..a2aec986ed00 100644 --- a/pkgs/development/python-modules/batinfo/default.nix +++ b/pkgs/development/python-modules/batinfo/default.nix @@ -8,14 +8,14 @@ buildPythonPackage rec { pname = "batinfo"; - version = "2.0"; + version = "0.4.2"; pyproject = true; src = fetchFromGitHub { owner = "nicolargo"; repo = "batinfo"; tag = "v${version}"; - hash = "sha256-7oR8FRnl6reFHKPf49ZH3zQIjgOX1KTOxb3aCRNYOSg="; + hash = "sha256-GgAJJA8bzQJLAU+nxmkDa5LFTHc4NGi+nj9PfKyw8/M="; }; postPatch = '' @@ -36,6 +36,11 @@ buildPythonPackage rec { "test_batinfo_name_default" ]; + passthru = { + # Upstream has a broken 2.0 tag that causes this package to get downgraded to 0.2 + skipBulkUpdate = true; + }; + meta = { description = "Module to retrieve battery information"; homepage = "https://github.com/nicolargo/batinfo";