mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
glances: 4.1.2.1 -> 4.2.0 (#351278)
This commit is contained in:
commit
fe9d284915
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user