From 4d8ee90ace0df950014ca57d2a3d62dc38f4706d Mon Sep 17 00:00:00 2001 From: axolord <24368475+Axolord@users.noreply.github.com> Date: Tue, 10 Feb 2026 20:07:10 +0100 Subject: [PATCH] glances: 4.3.3 -> 4.5.0.5 --- pkgs/applications/system/glances/default.nix | 24 ++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/system/glances/default.nix b/pkgs/applications/system/glances/default.nix index 856f9ea8fab9..bb99cc419eb7 100644 --- a/pkgs/applications/system/glances/default.nix +++ b/pkgs/applications/system/glances/default.nix @@ -7,18 +7,19 @@ defusedxml, packaging, psutil, + pyinstrument, setuptools, nixosTests, pytestCheckHook, which, podman, selenium, + python-jose, # Optional dependencies: fastapi, jinja2, pysnmp, hddtemp, - netifaces2, # IP module uvicorn, requests, prometheus-client, @@ -27,7 +28,7 @@ buildPythonApplication rec { pname = "glances"; - version = "4.3.3"; + version = "4.5.0.5"; pyproject = true; disabled = isPyPy; @@ -36,7 +37,7 @@ buildPythonApplication rec { owner = "nicolargo"; repo = "glances"; tag = "v${version}"; - hash = "sha256-RmGbd8Aa2jJ2DMrBUUoa8mPBa6bGnQd0s0y3p/zP0ng="; + hash = "sha256-IHgMZw+X7C/72w4vXaP37GgnhLVg7EF5/sd9QlmE0NM="; }; build-system = [ setuptools ]; @@ -56,14 +57,15 @@ buildPythonApplication rec { dependencies = [ defusedxml - netifaces2 packaging psutil + pyinstrument pysnmp fastapi uvicorn requests jinja2 + python-jose which prometheus-client shtab @@ -86,6 +88,20 @@ buildPythonApplication rec { "tests/test_webui.py" ]; + disabledTests = [ + # Upstream bug: diskio plugin doesn't check if args is None before accessing attributes + # Bug report: https://github.com/nicolargo/glances/issues/3429 + "test_msg_curse_returns_list" + "test_msg_curse_with_max_width" + # Network test expects visible network interfaces + # Default config hides loopback and interfaces without IP (glances.conf) + # In Nix sandbox environment, this results in zero visible interfaces + "test_glances_api_plugin_network" + # Test always returns 3 plugin updates, but needs >=5 to not fail + # May be an upstream bug, see: https://github.com/nicolargo/glances/issues/3430 + "test_perf_update" + ]; + meta = { homepage = "https://nicolargo.github.io/glances/"; description = "Cross-platform curses-based monitoring tool";