2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, python3Packages
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "nvitop";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.3.2";
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "XuehaiPan";
|
|
|
|
repo = pname;
|
2023-02-09 11:40:11 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-TunGtNe+lgx/hk8kNtB8yaCdbkiJ3d4JJ8NKB+6urJA=";
|
2022-10-30 15:09:59 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
pythonRelaxDeps = [ "nvidia-ml-py" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3Packages; [ pythonRelaxDepsHook ];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
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";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/XuehaiPan/nvitop/releases/tag/v${version}";
|
2022-10-30 15:09:59 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|