diff options
| author | Hilton Chain <hako@ultrarare.space> | 2026-01-12 20:45:22 +0800 |
|---|---|---|
| committer | Hilton Chain <hako@ultrarare.space> | 2026-01-12 20:45:22 +0800 |
| commit | 9b811605fbd4fbb2fb72827e58fa44e7274f6c50 (patch) | |
| tree | bf88f1558f4d1fd98f78e934ae34a943c740d395 | |
| parent | a22595749c64391c39c424cdb70c23a0f3c64d95 (diff) | |
nongnu: python-py3nvml: Revise package style.
* nongnu/packages/nvidia.scm (python-py3nvml)
[arguments] <#:phases>: Use search-input-file.
[synopsis, description]: Revise.
| -rw-r--r-- | nongnu/packages/nvidia.scm | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/nongnu/packages/nvidia.scm b/nongnu/packages/nvidia.scm index 96aad63..4183fde 100644 --- a/nongnu/packages/nvidia.scm +++ b/nongnu/packages/nvidia.scm @@ -1145,18 +1145,21 @@ functions.") "test_grabgpus2" "test_grabgpus3") " and not ")) - #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'fix-libnvidia - (lambda _ - (substitute* "py3nvml/py3nvml.py" - (("libnvidia-ml.so.1") - (string-append #$(this-package-input - "nvidia-driver") - "/lib/libnvidia-ml.so.1")))))))) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-libnvidia + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "py3nvml/py3nvml.py" + (("libnvidia-ml.so.1" file) + (search-input-file inputs (in-vicinity "lib" file))))))))) (native-inputs (list python-numpy python-pytest python-setuptools)) (propagated-inputs (list nvidia-driver python-xmltodict)) (home-page "https://github.com/fbcotter/py3nvml") - (synopsis "Unoffcial Python 3 Bindings for the NVIDIA Management Library") - (description "This package provides unofficial Python 3 Bindings for the -NVIDIA Management Library") + (synopsis "Python bindings to NVIDIA Management Library") + (description + "This package provides unofficial Python bindings to @acronym{NVML, NVIDIA +Management Library}. + +See @code{python-nvidia-ml-py} package for the official bindings provided by +NVIDIA.") (license license-gnu:bsd-3))) |
