nongnu: nvidia-htop: Update to 1.2.0.

* nongnu/packages/nvidia.scm (nvidia-htop): Update to 1.2.0.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Replace 'check to change directory.
[native-inputs]: Add python-pytest, python-setuptools.

Signed-off-by: Hilton Chain <hako@ultrarare.space>
Modified-by: Hilton Chain <hako@ultrarare.space>
This commit is contained in:
Nicolas Graves 2026-01-11 12:32:33 +01:00 committed by Hilton Chain
parent 5dd40a1345
commit 722bb464e0
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -980,16 +980,23 @@ laptops.")
(define-public nvidia-htop
(package
(name "nvidia-htop")
(version "1.0.5")
(source (origin
(method url-fetch)
(uri (pypi-uri "nvidia-htop" version))
(version "1.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/peci1/nvidia-htop")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"0lv9cpccpkbg0d577irm1lp9rx6pacyk2pk9v41k9s9hyl4b7hvx"))))
(build-system python-build-system)
(base32 "1d5cd4cp7swq5np8b9ryibhg2zpfwzh2dzbsvsrp0gx33krxjvyj"))))
(build-system pyproject-build-system)
(arguments
(list #:phases #~(modify-phases %standard-phases
(replace 'check
(lambda args
(with-directory-excursion "test"
(apply (assoc-ref %standard-phases 'check) args))))
(add-after 'unpack 'fix-libnvidia
(lambda _
(substitute* "nvidia-htop.py"
@ -997,6 +1004,7 @@ laptops.")
(string-append #$(this-package-input
"nvidia-driver")
"/bin/nvidia-smi"))))))))
(native-inputs (list python-pytest python-setuptools))
(inputs (list nvidia-driver))
(propagated-inputs (list python-termcolor))
(home-page "https://github.com/peci1/nvidia-htop")