summaryrefslogtreecommitdiff
path: root/gnu/packages/monitoring.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-11-03 20:33:22 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-11-04 10:50:02 +0000
commit00b4c08d77129aa91bf05ca23fbbd689079d3705 (patch)
treee3f2a2e61ea467b11cb72555df8808623c1d6628 /gnu/packages/monitoring.scm
parentf3e1cf830ee6efd974d9c7a7ad18f18988a6ce79 (diff)
gnu: glances: Move to monitoring.
* gnu/packages/python-xyz.scm (glances): Move from here ... * gnu/packages/monitoring.scm: ... to here. Change-Id: Ifa7c9e448c914fed63533db7cdfe2236c6315553
Diffstat (limited to 'gnu/packages/monitoring.scm')
-rw-r--r--gnu/packages/monitoring.scm57
1 files changed, 54 insertions, 3 deletions
diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm
index 8ddbdc255f6..3a112e529de 100644
--- a/gnu/packages/monitoring.scm
+++ b/gnu/packages/monitoring.scm
@@ -1,5 +1,6 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016, 2021, 2021 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2016, 2021, 2021 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2016, 2021 Stefan Reichör <stefan@xsteve.at>
3;;; Copyright © 2018 Sou Bunnbu <iyzsong@member.fsf.org> 4;;; Copyright © 2018 Sou Bunnbu <iyzsong@member.fsf.org>
4;;; Copyright © 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net> 5;;; Copyright © 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
5;;; Copyright © 2018, 2020, 2021 Tobias Geerinckx-Rice <me@tobias.gr> 6;;; Copyright © 2018, 2020, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
@@ -8,14 +9,16 @@
8;;; Copyright © 2020 Alex ter Weele <alex.ter.weele@gmail.com> 9;;; Copyright © 2020 Alex ter Weele <alex.ter.weele@gmail.com>
9;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org> 10;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org>
10;;; Copyright © 2021, 2022 Marius Bakke <marius@gnu.org> 11;;; Copyright © 2021, 2022 Marius Bakke <marius@gnu.org>
11;;; Copyright © 2021 Stefan Reic¶r <stefan@xsteve.at> 12;;; Copyright © 2021, 2023 Raphaël Mélotte <raphael.melotte@mind.be>
12;;; Copyright © 2021 Raphaël Mélotte <raphael.melotte@mind.be> 13;;; Copyright © 2022 Greg Hogan <code@greghogan.com>
13;;; Copyright © 2022 Paul A. Patience <paul@apatience.com> 14;;; Copyright © 2022 Paul A. Patience <paul@apatience.com>
14;;; Copyright © 2022 Hartmut Goebel <h.goebel@crazy-compilers.com> 15;;; Copyright © 2022 Hartmut Goebel <h.goebel@crazy-compilers.com>
15;;; Copyright © 2022 ( <paren@disroot.org> 16;;; Copyright © 2022 ( <paren@disroot.org>
16;;; Copyright © 2022 Mathieu Laparie <mlaparie@disr.it> 17;;; Copyright © 2022 Mathieu Laparie <mlaparie@disr.it>
18;;; Copyright © 2024 Ada Stevenson <adanskana@gmail.com>
17;;; Copyright © 2025 Nicolas Graves <ngraves@ngraves.fr> 19;;; Copyright © 2025 Nicolas Graves <ngraves@ngraves.fr>
18;;; Copyright © 2025 Giacomo Leidi <goodoldpaul@autistici.org> 20;;; Copyright © 2025 Giacomo Leidi <goodoldpaul@autistici.org>
21;;; Copyright © 2025 Christian Birk Sørensen <chrbirks@gmail.com>
19;;; 22;;;
20;;; This file is part of GNU Guix. 23;;; This file is part of GNU Guix.
21;;; 24;;;
@@ -79,7 +82,55 @@
79 #:use-module (gnu packages sphinx) 82 #:use-module (gnu packages sphinx)
80 #:use-module (gnu packages time) 83 #:use-module (gnu packages time)
81 #:use-module (gnu packages tls) 84 #:use-module (gnu packages tls)
82 #:use-module (gnu packages web)) 85 #:use-module (gnu packages web)
86 #:use-module (gnu packages xml))
87
88(define-public glances
89 (package
90 (name "glances")
91 (version "4.3.0")
92 (source
93 (origin
94 (method git-fetch)
95 (uri (git-reference
96 (url "https://github.com/nicolargo/glances")
97 (commit (string-append "v" version))))
98 (file-name (git-file-name name version))
99 (sha256
100 (base32 "1v2rsffy99ilarl5vnsz4zwb0wp3s3jnsbcbiqx53qxv88whfz71"))))
101 (build-system pyproject-build-system)
102 (arguments
103 (list
104 #:test-backend #~'custom
105 #:test-flags #~(list "unittest-core.py")
106 #:phases
107 #~(modify-phases %standard-phases
108 (add-after 'unpack 'disable-update-checks
109 (lambda _
110 ;; Glances phones PyPI for weekly update checks by default.
111 ;; Disable these. The user can re-enable them if desired.
112 (substitute* "glances/outdated.py"
113 (("^(.*)self\\.load_config\\(config\\)\n" line indentation)
114 (string-append indentation
115 "self.args.disable_check_update = True\n" line))))))))
116 (native-inputs
117 (list python-pytest
118 python-setuptools))
119 (propagated-inputs
120 (list python-defusedxml
121 python-jinja2
122 python-orjson
123 python-packaging
124 python-psutil
125 python-shtab))
126 (home-page "https://github.com/nicolargo/glances")
127 (synopsis "Cross-platform curses-based monitoring tool")
128 (description
129 "Glances is a curses-based monitoring tool for a wide variety of
130platforms. Glances uses the PsUtil library to get information from your
131system. It monitors CPU, load, memory, network bandwidth, disk I/O, disk use,
132and more.")
133 (license license:lgpl3+)))
83 134
84(define-public nagios 135(define-public nagios
85 (package 136 (package