Files
nixpkgs/pkgs/development/python-modules/gpustat/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

54 lines
1014 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 = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ billhuang ];
};
}