depot/third_party/nixpkgs/pkgs/development/python-modules/nvidia-ml-py/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

33 lines
705 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
}:
buildPythonPackage rec {
pname = "nvidia-ml-py";
version = "12.535.133";
format = "setuptools";
src = fetchPypi {
inherit pname version;
extension = "tar.gz";
hash = "sha256-sVWa8NV90glVv1jQWv/3sWbd1ElH6zBRyZBWOHmesdw=";
};
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 ];
};
}