2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, xmltodict
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py3nvml";
|
|
|
|
version = "0.2.7";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-Ce4dBFmKbmZOJEZfgEzjv+EZpv21Ni3xwWj4qpKfvXM=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
xmltodict
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "py3nvml" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python 3 Bindings for the NVIDIA Management Library";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "py3smi";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://pypi.org/project/py3nvml/";
|
|
|
|
license = with licenses; [ bsd3 bsd2 ];
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
};
|
|
|
|
}
|