Something went wrong. Try again.
lol
Something went wrong. Try again.
1.4 kB · 81 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182{ aiohttp, anyio, buildPythonPackage, distro, fetchFromGitHub, google-auth, httpx, lib, packaging, pkginfo, pydantic, pytestCheckHook, requests, setuptools, sniffio, tenacity, twine, typing-extensions, websockets,}:
buildPythonPackage rec { pname = "google-genai"; version = "1.67.0"; pyproject = true;
src = fetchFromGitHub { owner = "googleapis"; repo = "python-genai"; tag = "v${version}"; hash = "sha256-1ewVg271kooPkCEtmDm1HHnJY3MkomrXKp1dK9J0RXI="; };
build-system = [ packaging pkginfo setuptools twine ];
pythonRelaxDeps = [ "tenacity" "websockets" ];
dependencies = [ anyio distro google-auth httpx pydantic requests sniffio tenacity typing-extensions websockets ] ++ google-auth.optional-dependencies.requests;
optional-dependencies = { aiohttp = [ aiohttp ]; };
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 ]; };}