depot/third_party/nixpkgs/pkgs/development/python-modules/nvidia-ml-py/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

33 lines
705 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
}:
buildPythonPackage rec {
pname = "nvidia-ml-py";
version = "12.535.108";
format = "setuptools";
src = fetchPypi {
inherit pname version;
extension = "tar.gz";
hash = "sha256-FB/oGHcaFl+5P3Xb5/Afdnw7r6fBP2h29TWDURsHjuE=";
};
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 ];
};
}