gpustat: init at 1.0.0
update gpustat hash remove pytest-runner add pythonImportsCheck
This commit is contained in:
parent
e48936d8c4
commit
f3101c2c68
44
pkgs/development/python-modules/gpustat/default.nix
Normal file
44
pkgs/development/python-modules/gpustat/default.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{ 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;
|
||||
sha256 = "sha256-WB6P+FjDLJWjIruPA/HZ3D0Xe07LM93L7Sw3PGf04/E=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
||||
pythonRelaxDeps = [ "nvidia-ml-py" ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
blessed
|
||||
nvidia-ml-py
|
||||
psutil
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user