From f7a9b5959ea089fd5e2d5883c598e555df78902c Mon Sep 17 00:00:00 2001 From: natsukium Date: Mon, 30 Dec 2024 02:09:36 +0900 Subject: [PATCH] python312Packages.clarifai: 10.8.6 -> 10.11.1 Diff: https://github.com/Clarifai/clarifai-python/compare/refs/tags/10.8.6...10.11.1 Changelog: https://github.com/Clarifai/clarifai-python/releases/tag/10.11.1 --- .../python-modules/clarifai/default.nix | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/clarifai/default.nix b/pkgs/development/python-modules/clarifai/default.nix index 124e5cd8d987..911a92ea5479 100644 --- a/pkgs/development/python-modules/clarifai/default.nix +++ b/pkgs/development/python-modules/clarifai/default.nix @@ -2,7 +2,10 @@ lib, buildPythonPackage, clarifai-grpc, + clarifai-protocol, + click, fetchFromGitHub, + fsspec, inquirerpy, numpy, pillow, @@ -20,7 +23,7 @@ buildPythonPackage rec { pname = "clarifai"; - version = "10.8.6"; + version = "10.11.1"; pyproject = true; disabled = pythonOlder "3.8"; @@ -28,12 +31,12 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "Clarifai"; repo = "clarifai-python"; - rev = "refs/tags/${version}"; - hash = "sha256-/fHNRFtxyNa9VdEi5wQ+YA+9mFv3ZpRFJQnWkuxQd5I="; + tag = version; + hash = "sha256-dXsEYHkt4Z2YldqbCorNPG7rVSLfU8shYdk6lzFBz/M="; }; pythonRelaxDeps = [ - "clarifai-grpc" + "fsspec" "schema" ]; @@ -41,6 +44,9 @@ buildPythonPackage rec { dependencies = [ clarifai-grpc + clarifai-protocol + click + fsspec inquirerpy numpy pillow @@ -71,16 +77,19 @@ buildPythonPackage rec { disabledTestPaths = [ # Tests require network access and API key + "tests/cli/test_compute_orchestration.py" + "tests/runners/test_anymodel.py" + "tests/runners/test_textmodel.py" + "tests/runners/test_url_fetcher.py" "tests/test_app.py" "tests/test_data_upload.py" "tests/test_eval.py" "tests/test_model_predict.py" "tests/test_model_train.py" + "tests/test_rag.py" "tests/test_search.py" "tests/workflow/test_create_delete.py" "tests/workflow/test_predict.py" - "tests/test_rag.py" - "clarifai/models/model_serving/repo_build/static_files/base_test.py" ]; pythonImportsCheck = [ "clarifai" ];