depot/third_party/nixpkgs/pkgs/tools/system/nvitop/default.nix

36 lines
790 B
Nix
Raw Normal View History

{ lib
, python3Packages
, fetchFromGitHub
}:
python3Packages.buildPythonApplication rec {
pname = "nvitop";
version = "1.1.2";
src = fetchFromGitHub {
owner = "XuehaiPan";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-+Yq/UHjrR2nT+TLXEDbNP2yMy4+LZGgbMrDLmWcrxqg=";
};
propagatedBuildInputs = with python3Packages; [
cachetools
psutil
termcolor
nvidia-ml-py
];
checkPhase = ''
$out/bin/nvitop --help
'';
meta = with lib; {
description = "An interactive NVIDIA-GPU process viewer, the one-stop solution for GPU process management";
homepage = "https://github.com/XuehaiPan/nvitop";
license = licenses.gpl3;
maintainers = with maintainers; [ GaetanLepage ];
platforms = with platforms; linux;
};
}