diff options
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 |
