Skip to content

Commit

Permalink
python311Packages.clarifai: 9.7.1 -> 9.10.4
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium committed Nov 26, 2023
1 parent abbe047 commit 1b8ad25
Showing 1 changed file with 43 additions and 6 deletions.
49 changes: 43 additions & 6 deletions pkgs/development/python-modules/clarifai/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,75 @@
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
, clarifai-grpc
, numpy
, opencv4
, pillow
, pyyaml
, rich
, schema
, tqdm
, tritonclient
, pytestCheckHook
}:

buildPythonPackage rec {
pname = "clarifai";
version = "9.7.1";
format = "setuptools";
version = "9.10.4";
pyproject = true;

disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "Clarifai";
repo = "clarifai-python-utils";
repo = "clarifai-python";
rev = "refs/tags/${version}";
hash = "sha256-/zgHgD2kf3ZG7Mu9AEBfOwqpcD0Ye0LVrFxLeuGurCM=";
hash = "sha256-i/B4wtSqG/ZysAcidsXnqYPdcmu93Ufd6N9fxUmDJ2E=";
};

nativeBuildInputs = [
setuptools
];

propagatedBuildInputs = [
clarifai-grpc
numpy
tqdm
opencv4
tritonclient
rich
schema
pillow
pyyaml
];

nativeCheckInputs = [
pytestCheckHook
];

disabledTests = [
# require network access and API key
"test_export_workflow_general"
];

disabledTestPaths = [
# require network access and API key
"tests/test_app.py"
"tests/test_data_upload.py"
"tests/test_model_predict.py"
"tests/test_model_train.py"
"tests/test_search.py"
"tests/workflow/test_create_delete.py"
"tests/workflow/test_predict.py"
];

pythonImportsCheck = [ "clarifai" ];

meta = with lib; {
description = "Clarifai Python Utilities";
homepage = "https://github.com/Clarifai/clarifai-python-utils";
changelog = "https://github.com/Clarifai/clarifai-python-utils/releases/tag/${src.rev}";
homepage = "https://github.com/Clarifai/clarifai-python";
changelog = "https://github.com/Clarifai/clarifai-python/releases/tag/${src.rev}";
license = licenses.asl20;
maintainers = with maintainers; [ natsukium ];
};
Expand Down

0 comments on commit 1b8ad25

Please sign in to comment.