Something went wrong. Try again.
lol
Something went wrong. Try again.
2.0 kB · 98 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling,
# dependencies filetype, google-api-core, google-auth, google-genai, langchain-core, pydantic,
# tests freezegun, langchain-tests, numpy, pytest-asyncio, pytest-mock, pytestCheckHook, syrupy,
# passthru gitUpdater,}:
buildPythonPackage (finalAttrs: { pname = "langchain-google-genai"; version = "4.2.1"; pyproject = true;
src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain-google"; tag = "libs/genai/v${finalAttrs.version}"; hash = "sha256-aNmYj5eOWDgHYlSLElwQXQByQg8gHqiybM19JQlkluk="; };
sourceRoot = "${finalAttrs.src.name}/libs/genai";
build-system = [ hatchling ];
dependencies = [ filetype google-api-core google-auth google-genai langchain-core pydantic ];
nativeCheckInputs = [ freezegun langchain-tests numpy pytest-asyncio pytest-mock pytestCheckHook syrupy ];
enabledTestPaths = [ "tests/unit_tests" ];
disabledTests = [ # Fails when langchain-core gets ahead of this package "test_serdes" "test_serialize" ];
disabledTestPaths = [ # AssertionError: assert {'google_maps...s': None, ...} == {'google_maps...a'... "tests/unit_tests/test_chat_models.py::test_response_to_result_grounding_metadata[raw_response0-expected_grounding_metadata0]" ];
pythonImportsCheck = [ "langchain_google_genai" ];
passthru = { # python updater script sets the wrong tag skipBulkUpdate = true; updateScript = gitUpdater { rev-prefix = "libs/genai/v"; }; };
meta = { changelog = "https://github.com/langchain-ai/langchain-google/releases/tag/${finalAttrs.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 = with lib.maintainers; [ eu90h sarahec ]; };})