glances: 4.2.1 -> 4.3.0.6

fixes #361545
closes #368794
Changelog: https://github.com/nicolargo/glances/blob/v4.3.0.6/NEWS.rst

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
2024-12-31 16:03:44 +01:00
parent 61d2dc67cc
commit 080eb11eee

View File

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