2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
2022-10-30 15:09:59 +00:00
|
|
|
, blessed
|
2023-07-15 17:15:38 +00:00
|
|
|
, buildPythonPackage
|
2022-10-30 15:09:59 +00:00
|
|
|
, fetchPypi
|
|
|
|
, mockito
|
|
|
|
, nvidia-ml-py
|
|
|
|
, psutil
|
|
|
|
, pytestCheckHook
|
2023-07-15 17:15:38 +00:00
|
|
|
, pythonOlder
|
|
|
|
, pythonRelaxDepsHook
|
|
|
|
, setuptools-scm
|
2022-10-30 15:09:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gpustat";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "1.1.1";
|
2023-07-15 17:15:38 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-wY0+1VGPwWMAxC1pTevHCuuzvlXK6R8dtk1jtfqK+dg=";
|
2022-10-30 15:09:59 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"nvidia-ml-py"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
blessed
|
|
|
|
nvidia-ml-py
|
|
|
|
psutil
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-10-30 15:09:59 +00:00
|
|
|
mockito
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"gpustat"
|
|
|
|
];
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple command-line utility for querying and monitoring GPU status";
|
|
|
|
homepage = "https://github.com/wookayin/gpustat";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/wookayin/gpustat/releases/tag/v${version}";
|
2022-10-30 15:09:59 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ billhuang ];
|
|
|
|
};
|
|
|
|
}
|