mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
d93b59509c
Co-authored-by: Gaetan Lepage <gaetan.lepage@inria.fr> Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
34 lines
704 B
Nix
34 lines
704 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nvidia-ml-py";
|
|
version = "11.515.48";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
extension = "tar.gz";
|
|
hash = "sha256-iNLQu9c8Q3B+FXMObRTtxqE3B/siJIlIlCH6T0rX+sY=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|