Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
1.0 KiB
Nix
46 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "nvitop";
|
|
version = "1.5.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "XuehaiPan";
|
|
repo = "nvitop";
|
|
tag = "v${version}";
|
|
hash = "sha256-cqRvjK3q9fm5HPnZFGSV59FPnAdLkeq/D5wSR5ke7Ok=";
|
|
};
|
|
|
|
build-system = with python3Packages; [ setuptools ];
|
|
|
|
pythonRelaxDeps = [ "nvidia-ml-py" ];
|
|
|
|
dependencies = with python3Packages; [
|
|
psutil
|
|
nvidia-ml-py
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
versionCheckProgramArg = "--version";
|
|
|
|
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/v${version}";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
|
platforms = with lib.platforms; linux;
|
|
};
|
|
}
|