587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
58 lines
1 KiB
Nix
58 lines
1 KiB
Nix
{ lib
|
|
, blessed
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, mockito
|
|
, nvidia-ml-py
|
|
, psutil
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pythonRelaxDepsHook
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gpustat";
|
|
version = "1.1.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-wY0+1VGPwWMAxC1pTevHCuuzvlXK6R8dtk1jtfqK+dg=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"nvidia-ml-py"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pythonRelaxDepsHook
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
blessed
|
|
nvidia-ml-py
|
|
psutil
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mockito
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"gpustat"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A simple command-line utility for querying and monitoring GPU status";
|
|
mainProgram = "gpustat";
|
|
homepage = "https://github.com/wookayin/gpustat";
|
|
changelog = "https://github.com/wookayin/gpustat/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ billhuang ];
|
|
};
|
|
}
|