blob: 8294b949f0fc6dbe18d0df5524f9c93ef6066e65 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
distutils,
}:
buildPythonPackage rec {
pname = "gputil";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "anderskm";
repo = "gputil";
tag = "v${version}";
hash = "sha256-iOyB653BMmDBtK1fM1ZyddjlnaypsuLMOV0sKaBt+yE=";
};
build-system = [ setuptools ];
dependencies = [ distutils ];
pythonImportsCheck = [ "GPUtil" ];
meta = {
homepage = "https://github.com/anderskm/gputil";
license = lib.licenses.mit;
description = "Getting GPU status from NVIDA GPUs using nvidia-smi";
changelog = "https://github.com/anderskm/gputil/releases/tag/${src.tag}";
maintainers = with lib.maintainers; [
doronbehar
];
};
}
|