glances: 4.1.2.1 -> 4.2.0 (#351278)

This commit is contained in:
Weijia Wang 2024-11-02 16:51:08 +01:00 committed by GitHub
commit fe9d284915
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,20 +5,15 @@
isPyPy,
lib,
defusedxml,
future,
ujson,
packaging,
psutil,
setuptools,
pydantic,
# Optional dependencies:
fastapi,
jinja2,
orjson,
pysnmp,
hddtemp,
netifaces, # IP module
py-cpuinfo,
uvicorn,
requests,
prometheus-client,
@ -26,16 +21,20 @@
buildPythonApplication rec {
pname = "glances";
version = "4.1.2.1";
version = "4.2.0";
pyproject = true;
disabled = isPyPy;
src = fetchFromGitHub {
owner = "nicolargo";
repo = "glances";
rev = "refs/tags/v${version}";
hash = "sha256-SlKt+wjzI9QRmMVvbIERuhQuCCaOh7L89WuNUXNhkuI=";
hash = "sha256-liyrMaqBgK7UZjWIKIgIFbskTGaWfyrK8L74DKmaDmY=";
};
build-system = [ setuptools ];
# On Darwin this package segfaults due to mismatch of pure and impure
# CoreFoundation. This issues was solved for binaries but for interpreted
# scripts a workaround below is still required.
@ -46,27 +45,27 @@ buildPythonApplication rec {
"/System/Library/Frameworks"
];
doCheck = true;
preCheck = lib.optionalString stdenv.hostPlatform.isDarwin ''
export DYLD_FRAMEWORK_PATH=/System/Library/Frameworks
# some tests fail in darwin sandbox
doCheck = !stdenv.hostPlatform.isDarwin;
checkPhase = ''
runHook preCheck
python unittest-core.py
runHook postCheck
'';
propagatedBuildInputs = [
dependencies = [
defusedxml
future
ujson
netifaces
packaging
psutil
pysnmp
setuptools
py-cpuinfo
pydantic
fastapi
uvicorn
requests
jinja2
orjson
prometheus-client
] ++ lib.optional stdenv.hostPlatform.isLinux hddtemp;