python313Packages.google-genai: init at 1.4.0

This commit is contained in:
Robert Schütz
2025-03-05 23:03:33 +01:00
committed by Martin Weinelt
parent 28fc886503
commit 8bc6f32033
2 changed files with 56 additions and 0 deletions
@@ -0,0 +1,54 @@
{
buildPythonPackage,
fetchFromGitHub,
google-auth,
httpx,
lib,
pydantic,
pytestCheckHook,
requests,
setuptools,
typing-extensions,
websockets,
}:
buildPythonPackage rec {
pname = "google-genai";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "googleapis";
repo = "python-genai";
tag = "v${version}";
hash = "sha256-aVn23g67PW3Qge6ZI0lFoozdoWVRrISy29k4uvBKTBQ=";
};
build-system = [ setuptools ];
dependencies = [
google-auth
httpx
pydantic
requests
typing-extensions
websockets
];
pythonImportsCheck = [ "google.genai" ];
nativeCheckInputs = [
pytestCheckHook
];
# ValueError: GOOGLE_GENAI_REPLAYS_DIRECTORY environment variable is not set
doCheck = false;
meta = {
changelog = "https://github.com/googleapis/python-genai/blob/${src.tag}/CHANGELOG.md";
description = "Google Generative AI Python SDK";
homepage = "https://github.com/googleapis/python-genai";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
+2
View File
@@ -5579,6 +5579,8 @@ self: super: with self; {
inherit (pkgs) crc32c;
};
google-genai = callPackage ../development/python-modules/google-genai { };
google-generativeai = callPackage ../development/python-modules/google-generativeai { };
google-i18n-address = callPackage ../development/python-modules/google-i18n-address { };