python3Packages.paddlex: use global python3.pkgs.gputil
This commit is contained in:
@@ -17,40 +17,13 @@
|
||||
ruamel-yaml,
|
||||
typing-extensions,
|
||||
ujson,
|
||||
distutils,
|
||||
gputil,
|
||||
huggingface-hub,
|
||||
modelscope,
|
||||
aistudio-sdk,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
let
|
||||
gputil = 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}";
|
||||
};
|
||||
};
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "paddlex";
|
||||
version = "3.3.10";
|
||||
|
||||
Reference in New Issue
Block a user