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