Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools,
# dependencies google-api-core, google-auth, grpcio, proto-plus, protobuf,
# tests google-cloud-testutils, mock, pytest-asyncio, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "google-ai-generativelanguage"; version = "0.12.0"; pyproject = true;
src = fetchFromGitHub { owner = "googleapis"; repo = "google-cloud-python"; tag = "google-ai-generativelanguage-v${finalAttrs.version}"; hash = "sha256-M/7uDWWz4YCfxa4gyM9BaAo10iyTMvtR2MhNpdFYnis="; };
sourceRoot = "${finalAttrs.src.name}/packages/google-ai-generativelanguage";
build-system = [ setuptools ];
pythonRelaxDeps = [ "protobuf" ]; dependencies = [ google-api-core google-auth grpcio proto-plus protobuf ] ++ google-api-core.optional-dependencies.grpc;
nativeCheckInputs = [ google-cloud-testutils mock pytest-asyncio pytestCheckHook ];
pythonImportsCheck = [ "google.ai.generativelanguage" "google.ai.generativelanguage_v1beta2" ];
passthru = { # bulk updater uses wrong tag skipBulkUpdate = true; };
meta = { description = "Google Ai Generativelanguage API client library"; homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-ai-generativelanguage"; changelog = "https://github.com/googleapis/google-cloud-python/blob/${finalAttrs.src.tag}/packages/google-ai-generativelanguage/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; };})