glances: 4.2.1 -> 4.3.0.6 (#379810)

This commit is contained in:
2025-02-09 12:59:17 +01:00
committed by GitHub

View File

@@ -3,19 +3,23 @@
buildPythonApplication,
fetchFromGitHub,
isPyPy,
pythonOlder,
lib,
defusedxml,
packaging,
psutil,
setuptools,
pydantic,
nixosTests,
pytestCheckHook,
which,
podman,
selenium,
# Optional dependencies:
fastapi,
jinja2,
pysnmp,
hddtemp,
netifaces, # IP module
netifaces2, # IP module
uvicorn,
requests,
prometheus-client,
@@ -23,16 +27,16 @@
buildPythonApplication rec {
pname = "glances";
version = "4.2.1";
version = "4.3.0.6";
pyproject = true;
disabled = isPyPy;
disabled = isPyPy || pythonOlder "3.9";
src = fetchFromGitHub {
owner = "nicolargo";
repo = "glances";
tag = "v${version}";
hash = "sha256-8Jm6DE3B7OQkaNwX/KwXMNZHUyvPtln8mJYaD6yzJRM=";
hash = "sha256-r4wDuV7WS3BQ5hidp2x6JqvHQLf6FchoHisMMEye1PM=";
};
build-system = [ setuptools ];
@@ -50,17 +54,9 @@ buildPythonApplication rec {
# some tests fail in darwin sandbox
doCheck = !stdenv.hostPlatform.isDarwin;
checkPhase = ''
runHook preCheck
python unittest-core.py
runHook postCheck
'';
dependencies = [
defusedxml
netifaces
netifaces2
packaging
psutil
pysnmp
@@ -68,6 +64,7 @@ buildPythonApplication rec {
uvicorn
requests
jinja2
which
prometheus-client
] ++ lib.optional stdenv.hostPlatform.isLinux hddtemp;
@@ -75,6 +72,18 @@ buildPythonApplication rec {
service = nixosTests.glances;
};
nativeCheckInputs = [
which
pytestCheckHook
selenium
podman
];
disabledTestPaths = [
# Message: Unable to obtain driver for chrome
"tests/test_webui.py"
];
meta = {
homepage = "https://nicolargo.github.io/glances/";
description = "Cross-platform curses-based monitoring tool";