python3Packages.paddlex: use global python3.pkgs.gputil

This commit is contained in:
Doron Behar
2026-01-01 17:52:13 +02:00
parent 1f2a9b8b30
commit 2d047cac05
@@ -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";