home-assistant: pin psutil to 7.1.2 for systemmonitor#497895
Open
zeus-x99 wants to merge 1 commit intoNixOS:masterfrom
Open
home-assistant: pin psutil to 7.1.2 for systemmonitor#497895zeus-x99 wants to merge 1 commit intoNixOS:masterfrom
zeus-x99 wants to merge 1 commit intoNixOS:masterfrom
Conversation
Contributor
There was a problem hiding this comment.
The PR's base branch is set to master, but this PR causes 1093 rebuilds.
It is therefore considered a mass rebuild.
Please change the base branch to the right base branch for your changes (probably staging).
dotlambda
reviewed
Mar 8, 2026
| # Pinned because systemmonitor in Home Assistant 2026.2.3 still requires | ||
| # psutil 7.1.2 and breaks with psutil 7.2.1 (missing sbattery in | ||
| # psutil._common). | ||
| psutil = super.psutil.overridePythonAttrs (oldAttrs: rec { |
Member
There was a problem hiding this comment.
Please add a package python3Packages.psutil_7_1: #421201
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Home Assistant
2026.2.3still shipssystemmonitorwith a hard requirement onpsutil==7.1.2, and it imports symbols that were removed frompsutil 7.2.1.On nixpkgs unstable,
pkgs.home-assistantcurrently ends up withpsutil 7.2.1, which breakssystemmonitorat import time with:ImportError: cannot import name 'sbattery' from 'psutil._common'Pin
psutilto7.1.2inside the Home Assistant Python package set sosystemmonitormatches its upstream dependency constraint again.Resolves #496133.
Testing
nix build -L .#home-assistant --no-linkpython3.13-psutil-7.1.2homeassistant.components.systemmonitor.coordinatorimports successfully from the built package