deps: allow psutil 7.x (#821)

This allows building with both psutil 6.x and 7.x. Closes #817.

Upstream [1] released psutil 7.0.0 recently, which caused a build failure on nixpkgs ci [2].
Checking release notes [3], `memory_info_ex` was removed (unused in auto-cpufreq),
and minimum python version requirements were increased to what this project uses already anyways.

[1] https://pypi.org/project/psutil/#history
[2] https://hydra.nixos.org/build/292453144/log
[3] https://github.com/giampaolo/psutil/blob/master/HISTORY.rst#700

Tested with:
```patch
diff --git a/flake.nix b/flake.nix
index ab3449b..89a11db 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,6 +1,6 @@
 {
   inputs = {
-    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
+    nixpkgs.url = "github:NixOS/nixpkgs/staging-next";
   };

   outputs = {nixpkgs, ...} @ inputs: let
```
This commit is contained in:
Grimmauld 2025-03-22 13:01:15 +01:00 committed by GitHub
parent f2c4a2d763
commit 8f026ac649
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,7 +22,7 @@ packages = [
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.8" python = "^3.8"
psutil = "^6.0.0" psutil = ">=6.0.0,<8.0.0"
click = "^8.1.0" click = "^8.1.0"
distro = "^1.8.0" distro = "^1.8.0"
requests = "^2.32.3" requests = "^2.32.3"