Merge pull request #316211 from r-ryantm/auto-update/glances
This commit is contained in:
commit
6e81ce0373
@ -1,22 +1,39 @@
|
|||||||
{ stdenv, buildPythonApplication, fetchFromGitHub, isPyPy, lib
|
{
|
||||||
, defusedxml, future, ujson, packaging, psutil, setuptools
|
stdenv,
|
||||||
|
buildPythonApplication,
|
||||||
|
fetchFromGitHub,
|
||||||
|
isPyPy,
|
||||||
|
lib,
|
||||||
|
defusedxml,
|
||||||
|
future,
|
||||||
|
ujson,
|
||||||
|
packaging,
|
||||||
|
psutil,
|
||||||
|
setuptools,
|
||||||
|
pydantic,
|
||||||
# Optional dependencies:
|
# Optional dependencies:
|
||||||
, bottle, pysnmp
|
fastapi,
|
||||||
, hddtemp
|
jinja2,
|
||||||
, netifaces # IP module
|
orjson,
|
||||||
, py-cpuinfo
|
pysnmp,
|
||||||
|
hddtemp,
|
||||||
|
netifaces, # IP module
|
||||||
|
py-cpuinfo,
|
||||||
|
uvicorn,
|
||||||
|
requests,
|
||||||
|
prometheus-client,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "glances";
|
pname = "glances";
|
||||||
version = "4.0.6";
|
version = "4.0.7";
|
||||||
disabled = isPyPy;
|
disabled = isPyPy;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nicolargo";
|
owner = "nicolargo";
|
||||||
repo = "glances";
|
repo = "glances";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-FkAMsfr/bO7Chemw4hhVt2SKkSyPLECNVuOsOxKWsGE=";
|
hash = "sha256-Vfsco8Wno57aPM7PtwCc/gI+6FnAG3H/t5OAUngDU5o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# On Darwin this package segfaults due to mismatch of pure and impure
|
# On Darwin this package segfaults due to mismatch of pure and impure
|
||||||
@ -24,7 +41,9 @@ buildPythonApplication rec {
|
|||||||
# scripts a workaround below is still required.
|
# scripts a workaround below is still required.
|
||||||
# Relevant: https://github.com/NixOS/nixpkgs/issues/24693
|
# Relevant: https://github.com/NixOS/nixpkgs/issues/24693
|
||||||
makeWrapperArgs = lib.optionals stdenv.isDarwin [
|
makeWrapperArgs = lib.optionals stdenv.isDarwin [
|
||||||
"--set" "DYLD_FRAMEWORK_PATH" "/System/Library/Frameworks"
|
"--set"
|
||||||
|
"DYLD_FRAMEWORK_PATH"
|
||||||
|
"/System/Library/Frameworks"
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
@ -33,7 +52,6 @@ buildPythonApplication rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
bottle
|
|
||||||
defusedxml
|
defusedxml
|
||||||
future
|
future
|
||||||
ujson
|
ujson
|
||||||
@ -43,14 +61,25 @@ buildPythonApplication rec {
|
|||||||
pysnmp
|
pysnmp
|
||||||
setuptools
|
setuptools
|
||||||
py-cpuinfo
|
py-cpuinfo
|
||||||
|
pydantic
|
||||||
|
fastapi
|
||||||
|
uvicorn
|
||||||
|
requests
|
||||||
|
jinja2
|
||||||
|
orjson
|
||||||
|
prometheus-client
|
||||||
] ++ lib.optional stdenv.isLinux hddtemp;
|
] ++ lib.optional stdenv.isLinux hddtemp;
|
||||||
|
|
||||||
meta = with lib; {
|
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";
|
||||||
mainProgram = "glances";
|
mainProgram = "glances";
|
||||||
changelog = "https://github.com/nicolargo/glances/blob/v${version}/NEWS.rst";
|
changelog = "https://github.com/nicolargo/glances/blob/v${version}/NEWS.rst";
|
||||||
license = licenses.lgpl3Only;
|
license = lib.licenses.lgpl3Only;
|
||||||
maintainers = with maintainers; [ jonringer primeos koral ];
|
maintainers = with lib.maintainers; [
|
||||||
|
jonringer
|
||||||
|
primeos
|
||||||
|
koral
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user