python-modules.langchain-google-genai: init at 2.1.5

This commit is contained in:
Stefan 2025-06-11 23:09:30 -04:00
parent 9fdce1a71b
commit af9937b224
2 changed files with 91 additions and 0 deletions

View File

@ -0,0 +1,89 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# dependencies
filetype,
google-api-core,
google-auth,
google-generativeai,
langchain-core,
pydantic,
# tests
freezegun,
langchain-tests,
numpy,
pytest-asyncio,
pytest-mock,
pytestCheckHook,
syrupy,
# passthru
gitUpdater,
}:
buildPythonPackage rec {
pname = "langchain-google-genai";
version = "2.1.5";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langchain-google";
tag = "libs/genai/v${version}";
hash = "sha256-NCy4PHUSChsMVSebshDRGsg/koY7S4+mvI+GlIqW4q4=";
};
sourceRoot = "${src.name}/libs/genai";
build-system = [ poetry-core ];
pythonRelaxDeps = [
# Each component release requests the exact latest core.
# That prevents us from updating individual components.
"langchain-core"
];
dependencies = [
filetype
google-api-core
google-auth
google-generativeai
langchain-core
pydantic
];
nativeCheckInputs = [
freezegun
langchain-tests
numpy
pytest-asyncio
pytest-mock
pytestCheckHook
syrupy
];
pytestFlagsArray = [ "tests/unit_tests" ];
pythonImportsCheck = [ "langchain_google_genai" ];
passthru.updateScript = gitUpdater {
rev-prefix = "libs/genai/v";
};
meta = {
changelog = "https://github.com/langchain-ai/langchain-google/releases/tag/${src.tag}";
description = "LangChain integrations for Google Gemini";
homepage = "https://github.com/langchain-ai/langchain-google/tree/main/libs/genai";
license = lib.licenses.mit;
maintainers = [
lib.maintainers.eu90h
lib.maintainers.sarahec
];
};
}

View File

@ -7699,6 +7699,8 @@ self: super: with self; {
langchain-fireworks = callPackage ../development/python-modules/langchain-fireworks { };
langchain-google-genai = callPackage ../development/python-modules/langchain-google-genai { };
langchain-groq = callPackage ../development/python-modules/langchain-groq { };
langchain-huggingface = callPackage ../development/python-modules/langchain-huggingface { };