depot/third_party/nixpkgs/pkgs/development/python-modules/gpustat/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

53 lines
1,016 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 ];
};
}