5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
39 lines
901 B
Nix
39 lines
901 B
Nix
{ lib
|
|
, python3Packages
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "nvitop";
|
|
version = "1.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "XuehaiPan";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-DPdKdIqFUozTt5Go3+c7oSv9tZSio486QeSlSfIrBZ4=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "nvidia-ml-py" ];
|
|
|
|
nativeBuildInputs = with python3Packages; [ pythonRelaxDepsHook ];
|
|
|
|
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;
|
|
};
|
|
}
|