2022-10-04 07:19:31 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, blessed
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, mockito
|
|
|
|
, nvidia-ml-py
|
|
|
|
, psutil
|
|
|
|
, pytest-runner
|
|
|
|
, pythonRelaxDepsHook
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gpustat";
|
|
|
|
version = "1.0.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-WB6P+FjDLJWjIruPA/HZ3D0Xe07LM93L7Sw3PGf04/E=";
|
2022-10-04 07:19:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
|
|
|
pythonRelaxDeps = [ "nvidia-ml-py" ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
blessed
|
|
|
|
nvidia-ml-py
|
|
|
|
psutil
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-10-04 07:19:31 +00:00
|
|
|
mockito
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "gpustat" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple command-line utility for querying and monitoring GPU status";
|
|
|
|
homepage = "https://github.com/wookayin/gpustat";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ billhuang ];
|
|
|
|
};
|
|
|
|
}
|