python311Packages.clarifai: 9.11.1 -> 10.1.0
Diff: https://github.com/Clarifai/clarifai-python/compare/refs/tags/9.11.1...10.1.0 Changelog: https://github.com/Clarifai/clarifai-python/releases/tag/10.1.0
This commit is contained in:
parent
82f4c29ae7
commit
c93425a2fd
@ -1,23 +1,29 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, clarifai-grpc
|
||||
, fetchFromGitHub
|
||||
, inquirerpy
|
||||
, llama-index-core
|
||||
, numpy
|
||||
, opencv4
|
||||
, pandas
|
||||
, pillow
|
||||
, pycocotools
|
||||
, pypdf
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pythonRelaxDepsHook
|
||||
, pyyaml
|
||||
, rich
|
||||
, schema
|
||||
, setuptools
|
||||
, tqdm
|
||||
, tritonclient
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "clarifai";
|
||||
version = "9.11.1";
|
||||
version = "10.1.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@ -26,36 +32,59 @@ buildPythonPackage rec {
|
||||
owner = "Clarifai";
|
||||
repo = "clarifai-python";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-fVari/SnrUnEbrYefV9j2yA/EMJoGiLOV7q/DrS0AQ8=";
|
||||
hash = "sha256-/2PIsSsYr/R7DuTX/ndBAOX7C3IaFqPw16ZAX8E1Vk8=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"clarifai-grpc"
|
||||
];
|
||||
|
||||
pythonRemoveDeps = [
|
||||
"opencv-python"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pythonRelaxDepsHook
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
clarifai-grpc
|
||||
inquirerpy
|
||||
llama-index-core
|
||||
numpy
|
||||
tqdm
|
||||
opencv4
|
||||
tritonclient
|
||||
pandas
|
||||
pillow
|
||||
pypdf
|
||||
pyyaml
|
||||
rich
|
||||
schema
|
||||
pillow
|
||||
pyyaml
|
||||
tqdm
|
||||
tritonclient
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
all = [
|
||||
pycocotools
|
||||
];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# require network access and API key
|
||||
# Test requires network access and API key
|
||||
"test_export_workflow_general"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# require network access and API key
|
||||
# Tests require network access and API key
|
||||
"tests/test_app.py"
|
||||
"tests/test_data_upload.py"
|
||||
"tests/test_model_predict.py"
|
||||
@ -63,14 +92,18 @@ buildPythonPackage rec {
|
||||
"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" ];
|
||||
pythonImportsCheck = [
|
||||
"clarifai"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Clarifai Python Utilities";
|
||||
homepage = "https://github.com/Clarifai/clarifai-python";
|
||||
changelog = "https://github.com/Clarifai/clarifai-python/releases/tag/${src.rev}";
|
||||
changelog = "https://github.com/Clarifai/clarifai-python/releases/tag/${version}";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ natsukium ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user