Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1016 B
Nix
54 lines
1016 B
Nix
{
|
|
lib,
|
|
blessed,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
mockito,
|
|
nvidia-ml-py,
|
|
psutil,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
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 = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
blessed
|
|
nvidia-ml-py
|
|
psutil
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mockito
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "gpustat" ];
|
|
|
|
meta = with lib; {
|
|
description = "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 ];
|
|
};
|
|
}
|