Something went wrong. Try again.
lol
Something went wrong. Try again.
1.6 kB · 70 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{ 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.10.0"; pyproject = true;
src = fetchFromGitHub { owner = "googleapis"; repo = "google-cloud-python"; tag = "google-ai-generativelanguage-v${finalAttrs.version}"; hash = "sha256-dVgcnnInqjUjySL7wjxGzI33t1YZJ8e9mSsmjAJ+fBI="; };
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" ];
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 ]; };})