diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-06 16:52:37 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-06 22:08:08 +0100 |
| commit | 774bb0f59b0e50f63309b32278a3637f06042ac0 (patch) | |
| tree | eb799850cda51dd5e69b2cb2c8996d52f7e7f94d /gnu/packages/python-xyz.scm | |
| parent | e26a5f5900b2aa86383590ba1c6cb494195e1638 (diff) | |
gnu: glances: Switch to pyproject.
* gnu/packages/python-xyz.scm (glances):
[source]: Switch to git-fetch. Move snippet to <#:phases>.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Import former source snippet. Add 'check phase
replacement.
[native-inputs]: Add python-pytest, python-setuptools-next.
Change-Id: I18f1ded40f64fcd640728af778e48666d8d762f0
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 66 |
1 files changed, 39 insertions, 27 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index dbd986d175..74bc4189d2 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -24917,35 +24917,47 @@ numbers, real numbers, mixed types and more, and comes with a shell command (define-public glances (package - (name "glances") - (version "4.1.1") - (source - (origin - (method url-fetch) - (uri (pypi-uri "glances" version)) - (sha256 - (base32 "10yjwbmwv2x4x1n3hr1631m8l6l9w8fa7rnvfz1vmzkjs199ihib")) - (modules '((guix build utils))) - (snippet - '(begin - ;; 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))) - #t)))) - (build-system python-build-system) - (propagated-inputs - (list python-defusedxml python-orjson python-packaging python-psutil)) - (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. + (name "glances") + (version "4.1.1") + (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 "00xyixi3wrajmkmqgd1rlaqypi6c1wskm6q0xbrw2k1zc7wi3kxl")))) + (build-system pyproject-build-system) + (arguments + (list + #: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))))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; XXX: Taken from tox.ini. + (invoke "python" "unittest-core.py"))))))) + (native-inputs (list python-pytest python-setuptools-next)) + (propagated-inputs (list python-defusedxml python-orjson python-packaging + python-psutil)) + (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+))) + (license license:lgpl3+))) (define-public python-graphql-core (package |
