diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2024-04-09 15:53:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-09 15:53:08 +0200 |
commit | fd251a0ea0d4680321340e63e3e7c5dd934f62f5 (patch) | |
tree | fff1de57edad76171acd3a0148d52b43fa6c41ca | |
parent | e641db7bca39979d92528578138bce677d82e6f7 (diff) | |
parent | 090ee63bebad38a16aaf4932d62001a612b37146 (diff) |
Merge pull request #302788 from fabaff/google-generativeai-bump
python312Packages.google-generativeai: 0.4.1 -> 0.5.0
-rw-r--r-- | pkgs/development/python-modules/google-generativeai/default.nix | 50 |
1 files changed, 24 insertions, 26 deletions
diff --git a/pkgs/development/python-modules/google-generativeai/default.nix b/pkgs/development/python-modules/google-generativeai/default.nix index dfcc2e06034a..a63b61ca09c2 100644 --- a/pkgs/development/python-modules/google-generativeai/default.nix +++ b/pkgs/development/python-modules/google-generativeai/default.nix @@ -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"; |