python313Packages.google-genai: init at 1.4.0
This commit is contained in:
committed by
Martin Weinelt
parent
28fc886503
commit
8bc6f32033
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user