blob: dffe1be4a05af2818fc9439025c2307d75438354 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{
lib,
python3Packages,
fetchFromGitHub,
versionCheckHook,
}:
python3Packages.buildPythonApplication (finalAttrs: {
pname = "nvitop";
version = "1.7.1";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "XuehaiPan";
repo = "nvitop";
tag = "v${finalAttrs.version}";
hash = "sha256-x6ONS9tGzRa+z2djZ17w14lyyluuTMam75TwujHrH1E=";
};
build-system = with python3Packages; [ setuptools ];
pythonRelaxDeps = [ "nvidia-ml-py" ];
dependencies = with python3Packages; [
psutil
nvidia-ml-py
];
nativeInstallCheckInputs = [
versionCheckHook
];
pythonImportsCheck = [ "nvitop" ];
meta = {
description = "Interactive NVIDIA-GPU process viewer, the one-stop solution for GPU process management";
homepage = "https://github.com/XuehaiPan/nvitop";
changelog = "https://github.com/XuehaiPan/nvitop/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ GaetanLepage ];
platforms = with lib.platforms; linux;
};
})
|