94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
33 lines
705 B
Nix
33 lines
705 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nvidia-ml-py";
|
|
version = "11.525.112";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
extension = "tar.gz";
|
|
hash = "sha256-xk5HOVO2XsDMx2zzYBwxMKCsgGC7yuqRLMAPqOTJho0=";
|
|
};
|
|
|
|
patches = [
|
|
./0001-locate-libnvidia-ml.so.1-on-NixOS.patch
|
|
];
|
|
|
|
# no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pynvml" ];
|
|
|
|
meta = {
|
|
description = "Python Bindings for the NVIDIA Management Library";
|
|
homepage = "https://pypi.org/project/nvidia-ml-py";
|
|
license = lib.licenses.bsd3;
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
|
};
|
|
}
|