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