From f5f1911538ac1f0bc4bfadda9335e1b6a365db2c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 27 Sep 2025 18:39:57 +0200 Subject: [PATCH] python313Packages.clarifai: 11.6.7 -> 11.8.2 Changelog: https://github.com/Clarifai/clarifai-python/releases/tag/11.8.2 --- .../python-modules/clarifai/default.nix | 41 +++++++++++++++---- 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/clarifai/default.nix b/pkgs/development/python-modules/clarifai/default.nix index f0cd9a2468f2..d267aa06e035 100644 --- a/pkgs/development/python-modules/clarifai/default.nix +++ b/pkgs/development/python-modules/clarifai/default.nix @@ -1,29 +1,38 @@ { lib, + aiohttp, buildPythonPackage, clarifai-grpc, clarifai-protocol, click, fetchFromGitHub, fsspec, + huggingface-hub, inquirerpy, numpy, pillow, + pkgs, + psutil, pycocotools, + pydantic-core, + pytest-asyncio, pytestCheckHook, pythonOlder, pyyaml, rich, + ruff, schema, setuptools, tabulate, tqdm, tritonclient, + uv, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { pname = "clarifai"; - version = "11.6.7"; + version = "11.8.2"; pyproject = true; disabled = pythonOlder "3.8"; @@ -32,18 +41,22 @@ buildPythonPackage rec { owner = "Clarifai"; repo = "clarifai-python"; tag = version; - hash = "sha256-1ftwsIKJ494F8q45x0LtvOZhM72AAhJWe0LligNNpkQ="; + hash = "sha256-7luvK7xnkJRALXm7X7mg6VG9qRpq9pmFdBRW2GP3heI="; }; pythonRelaxDeps = [ + "clarifai-protocol" "click" "fsspec" + "ruff" "schema" + "uv" ]; build-system = [ setuptools ]; dependencies = [ + aiohttp clarifai-grpc clarifai-protocol click @@ -51,23 +64,29 @@ buildPythonPackage rec { inquirerpy numpy pillow + psutil + pydantic-core pyyaml rich + ruff schema tabulate tqdm tritonclient + uv ]; optional-dependencies = { all = [ pycocotools ]; }; - nativeCheckInputs = [ pytestCheckHook ]; - - preCheck = '' - export HOME=$(mktemp -d) - ''; + nativeCheckInputs = [ + pkgs.gitMinimal + huggingface-hub + pytest-asyncio + pytestCheckHook + writableTmpDirAsHomeHook + ]; disabledTests = [ # Test requires network access and API key @@ -79,14 +98,18 @@ buildPythonPackage rec { disabledTestPaths = [ # Tests require network access and API key "tests/cli/test_compute_orchestration.py" - "tests/runners/test_anymodel.py" "tests/runners/test_download_checkpoints.py" + "tests/runners/test_model_run_locally.py" + "tests/runners/test_model_upload.py" + "tests/runners/test_num_threads_config.py" + "tests/runners/test_runners_proto.py" "tests/runners/test_runners.py" - "tests/runners/test_textmodel.py" "tests/runners/test_url_fetcher.py" + "tests/runners/test_vllm_model_upload.py" "tests/test_app.py" "tests/test_data_upload.py" "tests/test_eval.py" + "tests/test_list_models.py" "tests/test_model_predict.py" "tests/test_model_train.py" "tests/test_rag.py"