python310Packages.clarifai: init at 9.5.2

This commit is contained in:
natsukium 2023-06-28 22:46:50 +09:00
parent c0957e49d1
commit 4f84f7c81b
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, clarifai-grpc
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "clarifai";
version = "9.5.2";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Clarifai";
repo = "clarifai-python-utils";
rev = "refs/tags/${version}";
hash = "sha256-29by0YAQ7qc0gL/3lAFOk4FLDB5Qv4X9QDyK49gfyAo=";
};
propagatedBuildInputs = [
clarifai-grpc
];
nativeCheckInputs = [
pytestCheckHook
];
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}";
license = licenses.asl20;
maintainers = with maintainers; [ natsukium ];
};
}

View File

@ -1861,6 +1861,8 @@ self: super: with self; {
ckcc-protocol = callPackage ../development/python-modules/ckcc-protocol { };
clarifai = callPackage ../development/python-modules/clarifai { };
clarifai-grpc = callPackage ../development/python-modules/clarifai-grpc { };
claripy = callPackage ../development/python-modules/claripy { };