Skip to content

Commit

Permalink
glances: 4.3.0.6 -> 4.2.1 (#379784)
Browse files Browse the repository at this point in the history
  • Loading branch information
misuzu authored Feb 6, 2025
2 parents 5cba040 + 3020116 commit e4b6440
Showing 1 changed file with 14 additions and 23 deletions.
37 changes: 14 additions & 23 deletions pkgs/applications/system/glances/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,36 @@
buildPythonApplication,
fetchFromGitHub,
isPyPy,
pythonOlder,
lib,
defusedxml,
packaging,
psutil,
setuptools,
pydantic,
nixosTests,
pytestCheckHook,
which,
podman,
selenium,
# Optional dependencies:
fastapi,
jinja2,
pysnmp,
hddtemp,
netifaces2, # IP module
netifaces, # IP module
uvicorn,
requests,
prometheus-client,
}:

buildPythonApplication rec {
pname = "glances";
version = "4.3.0.6";
version = "4.2.1";
pyproject = true;

disabled = isPyPy || pythonOlder "3.9";
disabled = isPyPy;

src = fetchFromGitHub {
owner = "nicolargo";
repo = "glances";
tag = "v${version}";
hash = "sha256-r4wDuV7WS3BQ5hidp2x6JqvHQLf6FchoHisMMEye1PM=";
hash = "sha256-8Jm6DE3B7OQkaNwX/KwXMNZHUyvPtln8mJYaD6yzJRM=";
};

build-system = [ setuptools ];
Expand All @@ -54,36 +50,31 @@ buildPythonApplication rec {
# some tests fail in darwin sandbox
doCheck = !stdenv.hostPlatform.isDarwin;

checkPhase = ''
runHook preCheck
python unittest-core.py
runHook postCheck
'';

dependencies = [
defusedxml
netifaces2
netifaces
packaging
psutil
pysnmp
fastapi
uvicorn
requests
jinja2
which
prometheus-client
] ++ lib.optional stdenv.hostPlatform.isLinux hddtemp;

passthru.tests = {
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";
Expand Down

0 comments on commit e4b6440

Please sign in to comment.