Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
53 lines
1.0 KiB
Nix
53 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
setuptools,
|
|
googleapis-common-protos,
|
|
grpcio,
|
|
protobuf,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "clarifai-grpc";
|
|
version = "11.8.6";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Clarifai";
|
|
repo = "clarifai-python-grpc";
|
|
tag = version;
|
|
hash = "sha256-Fg55DTde95j2bkqILiWJaYWs4cGr0r9sH26iwikldDw=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
googleapis-common-protos
|
|
grpcio
|
|
protobuf
|
|
requests
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"grpcio"
|
|
];
|
|
|
|
# almost all tests require network access
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "clarifai_grpc" ];
|
|
|
|
meta = {
|
|
description = "Clarifai gRPC API Client";
|
|
homepage = "https://github.com/Clarifai/clarifai-python-grpc";
|
|
changelog = "https://github.com/Clarifai/clarifai-python-grpc/releases/tag/${src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ natsukium ];
|
|
};
|
|
}
|