Merge pull request #302788 from fabaff/google-generativeai-bump

python312Packages.google-generativeai: 0.4.1 -> 0.5.0
This commit is contained in:
Fabian Affolter 2024-04-09 15:53:08 +02:00 committed by GitHub
commit fd251a0ea0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 24 additions and 26 deletions

View File

@ -1,21 +1,23 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, google-ai-generativelanguage
, google-api-core
, google-auth
, protobuf
, pythonOlder
, pythonRelaxDepsHook
, pydantic
, setuptools
, tqdm
, typing-extensions
{
lib,
buildPythonPackage,
fetchFromGitHub,
google-ai-generativelanguage,
google-api-core,
google-api-python-client,
google-auth,
protobuf,
pydantic,
pythonOlder,
pythonRelaxDepsHook,
setuptools,
tqdm,
typing-extensions,
}:
buildPythonPackage rec {
pname = "google-generativeai";
version = "0.4.1";
version = "0.5.0";
pyproject = true;
disabled = pythonOlder "3.9";
@ -24,22 +26,20 @@ buildPythonPackage rec {
owner = "google";
repo = "generative-ai-python";
rev = "refs/tags/v${version}";
hash = "sha256-+PRsxwy8Um6wCku9s7h8ERKEhcFsomEYAwYg+vpAGyg=";
hash = "sha256-WFkzqsiYADrxVUHClBHY0+oYz2sF52DrVblHT+94QYw=";
};
pythonRelaxDeps = [
"google-ai-generativelanguage"
];
pythonRelaxDeps = [ "google-ai-generativelanguage" ];
build-system = [
pythonRelaxDepsHook
setuptools
];
build-system = [ setuptools ];
nativeBuildInputs = [ pythonRelaxDepsHook ];
dependencies = [
google-ai-generativelanguage
google-auth
google-api-core
google-api-python-client
google-auth
protobuf
pydantic
tqdm
@ -49,9 +49,7 @@ buildPythonPackage rec {
# Issue with the google.ai module. Check with the next release
doCheck = false;
pythonImportsCheck = [
"google.generativeai"
];
pythonImportsCheck = [ "google.generativeai" ];
meta = with lib; {
description = "Python client library for Google's large language model PaLM API";