Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glances: 4.2.1 -> 4.3.0.6 #369699

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 23 additions & 14 deletions pkgs/applications/system/glances/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,40 @@
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,
}:

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 ];
Expand All @@ -50,31 +54,36 @@ 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
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
Loading