gnu: glances: Move to monitoring.

* gnu/packages/python-xyz.scm (glances): Move from here ...
* gnu/packages/monitoring.scm: ... to here.

Change-Id: Ifa7c9e448c914fed63533db7cdfe2236c6315553
This commit is contained in:
Sharlatan Hellseher 2025-11-03 20:33:22 +00:00
parent f3e1cf830e
commit 00b4c08d77
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5
2 changed files with 54 additions and 46 deletions

View file

@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016, 2021, 2021 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2016, 2021 Stefan Reichör <stefan@xsteve.at>
;;; Copyright © 2018 Sou Bunnbu <iyzsong@member.fsf.org>
;;; Copyright © 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2018, 2020, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
@ -8,14 +9,16 @@
;;; Copyright © 2020 Alex ter Weele <alex.ter.weele@gmail.com>
;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org>
;;; Copyright © 2021, 2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at>
;;; Copyright © 2021 Raphaël Mélotte <raphael.melotte@mind.be>
;;; Copyright © 2021, 2023 Raphaël Mélotte <raphael.melotte@mind.be>
;;; Copyright © 2022 Greg Hogan <code@greghogan.com>
;;; Copyright © 2022 Paul A. Patience <paul@apatience.com>
;;; Copyright © 2022 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;; Copyright © 2022 ( <paren@disroot.org>
;;; Copyright © 2022 Mathieu Laparie <mlaparie@disr.it>
;;; Copyright © 2024 Ada Stevenson <adanskana@gmail.com>
;;; Copyright © 2025 Nicolas Graves <ngraves@ngraves.fr>
;;; Copyright © 2025 Giacomo Leidi <goodoldpaul@autistici.org>
;;; Copyright © 2025 Christian Birk Sørensen <chrbirks@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@ -79,7 +82,55 @@
#:use-module (gnu packages sphinx)
#:use-module (gnu packages time)
#:use-module (gnu packages tls)
#:use-module (gnu packages web))
#:use-module (gnu packages web)
#:use-module (gnu packages xml))
(define-public glances
(package
(name "glances")
(version "4.3.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/nicolargo/glances")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1v2rsffy99ilarl5vnsz4zwb0wp3s3jnsbcbiqx53qxv88whfz71"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-backend #~'custom
#:test-flags #~(list "unittest-core.py")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'disable-update-checks
(lambda _
;; Glances phones PyPI for weekly update checks by default.
;; Disable these. The user can re-enable them if desired.
(substitute* "glances/outdated.py"
(("^(.*)self\\.load_config\\(config\\)\n" line indentation)
(string-append indentation
"self.args.disable_check_update = True\n" line))))))))
(native-inputs
(list python-pytest
python-setuptools))
(propagated-inputs
(list python-defusedxml
python-jinja2
python-orjson
python-packaging
python-psutil
python-shtab))
(home-page "https://github.com/nicolargo/glances")
(synopsis "Cross-platform curses-based monitoring tool")
(description
"Glances is a curses-based monitoring tool for a wide variety of
platforms. Glances uses the PsUtil library to get information from your
system. It monitors CPU, load, memory, network bandwidth, disk I/O, disk use,
and more.")
(license license:lgpl3+)))
(define-public nagios
(package

View file

@ -23640,49 +23640,6 @@ numbers, real numbers, mixed types and more, and comes with a shell command
@command{natsort} that exposes this functionality in the command line.")
(license license:expat)))
(define-public glances
(package
(name "glances")
(version "4.3.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/nicolargo/glances")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1v2rsffy99ilarl5vnsz4zwb0wp3s3jnsbcbiqx53qxv88whfz71"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-backend #~'custom
#:test-flags #~(list "unittest-core.py")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'disable-update-checks
(lambda _
;; Glances phones PyPI for weekly update checks by default.
;; Disable these. The user can re-enable them if desired.
(substitute* "glances/outdated.py"
(("^(.*)self\\.load_config\\(config\\)\n" line indentation)
(string-append indentation
"self.args.disable_check_update = True\n" line))))))))
(native-inputs (list python-pytest python-setuptools))
(propagated-inputs (list python-defusedxml
python-jinja2
python-orjson
python-packaging
python-psutil
python-shtab))
(home-page "https://github.com/nicolargo/glances")
(synopsis "Cross-platform curses-based monitoring tool")
(description
"Glances is a curses-based monitoring tool for a wide variety of platforms.
Glances uses the PsUtil library to get information from your system. It
monitors CPU, load, memory, network bandwidth, disk I/O, disk use, and more.")
(license license:lgpl3+)))
(define-public python-graphql-core
(package
(name "python-graphql-core")