python3Packages.{langchain,langgraph}: 250730 update (#427212)

Changed files
+78 -44
pkgs
development
python-modules
langchain
langchain-anthropic
langchain-core
langchain-ollama
langgraph
langgraph-checkpoint
langgraph-checkpoint-postgres
langgraph-checkpoint-sqlite
langgraph-prebuilt
langgraph-sdk
ormsgpack
+2 -2
pkgs/development/python-modules/langchain-anthropic/default.nix
···
buildPythonPackage rec {
pname = "langchain-anthropic";
-
version = "0.3.15";
+
version = "0.3.17";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langchain";
tag = "langchain-anthropic==${version}";
-
hash = "sha256-GOD6pMuUDCfrQ6MP+/HXZIg5wHUDRysosEjXjewY/9M=";
+
hash = "sha256-oUT4Mu/vG+bVF6zLQX2RbVUglJ6VMyBt8XtCBSlBlpU=";
};
sourceRoot = "${src.name}/libs/partners/anthropic";
+2 -2
pkgs/development/python-modules/langchain-core/default.nix
···
buildPythonPackage rec {
pname = "langchain-core";
-
version = "0.3.66";
+
version = "0.3.72";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langchain";
tag = "langchain-core==${version}";
-
hash = "sha256-k9B2ApNyX3w6RTt/XdOl2FvU87NuZSi96vvfJOnBltM=";
+
hash = "sha256-Q2uGMiODUtwkPdOyuSqp8vqjlLjiXk75QjXp7rr20tc=";
};
sourceRoot = "${src.name}/libs/core";
+2 -2
pkgs/development/python-modules/langchain-ollama/default.nix
···
buildPythonPackage rec {
pname = "langchain-ollama";
-
version = "0.3.5";
+
version = "0.3.6";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langchain";
tag = "langchain-ollama==${version}";
-
hash = "sha256-UmfbCctAb0D8mETICl5OJ58vghwhQKWkM1drkPt1aAg=";
+
hash = "sha256-GQkyJaYvwRbjDR0Rfen7/X5hFhY2+WU74B6/9Ufhpo4=";
};
sourceRoot = "${src.name}/libs/partners/ollama";
+7 -2
pkgs/development/python-modules/langchain/default.nix
···
buildPythonPackage rec {
pname = "langchain";
-
version = "0.3.26";
+
version = "0.3.27";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langchain";
tag = "langchain==${version}";
-
hash = "sha256-xxkayOtC2GtgtF3tPkTGKOS9VQ/y2gRPopvKq48/Kq0=";
+
hash = "sha256-bqzJ0017Td65rhDCr2wfx+SCaJzPZTFzQpzy3RlaRj4=";
};
sourceRoot = "${src.name}/libs/langchain";
···
"test_serializable_mapping"
"test_person"
"test_aliases_hidden"
+
# AssertionError: (failed string match due to terminal control chars in output)
+
# https://github.com/langchain-ai/langchain/issues/32150
+
"test_filecallback"
];
disabledTestPaths = [
···
passthru.updateScript = gitUpdater {
rev-prefix = "langchain==";
};
+
+
__darwinAllowLocalNetworking = true;
meta = {
description = "Building applications with LLMs through composability";
+4 -4
pkgs/development/python-modules/langgraph-checkpoint-postgres/default.nix
···
stdenvNoCC,
# build system
-
poetry-core,
+
hatchling,
# dependencies
langgraph-checkpoint,
···
buildPythonPackage rec {
pname = "langgraph-checkpoint-postgres";
-
version = "2.0.21";
+
version = "2.0.23";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
tag = "checkpointpostgres==${version}";
-
hash = "sha256-hl1EBOtUkSfHGxsM+LOZPLSvkW7hdHS08klpvA7/Bd0=";
+
hash = "sha256-QAzT8T3bf3R3gwI/iWDYYDz0SxgLZsP61oMk72dYz4s=";
};
postgresqlTestSetupPost = ''
···
sourceRoot = "${src.name}/libs/checkpoint-postgres";
-
build-system = [ poetry-core ];
+
build-system = [ hatchling ];
dependencies = [
langgraph-checkpoint
+25 -4
pkgs/development/python-modules/langgraph-checkpoint-sqlite/default.nix
···
fetchFromGitHub,
# build system
-
poetry-core,
+
hatchling,
# dependencies
aiosqlite,
langgraph-checkpoint,
+
sqlite-vec,
# testing
pytest-asyncio,
pytestCheckHook,
+
sqlite,
# passthru
gitUpdater,
···
buildPythonPackage rec {
pname = "langgraph-checkpoint-sqlite";
-
version = "2.0.6";
+
version = "2.0.10";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
tag = "checkpointsqlite==${version}";
-
hash = "sha256-UUlrhQS0C2rPp//+LwU2rgR4R3AM5fM9X3CYvi/DAy8=";
+
hash = "sha256-570rXAxS4p2b7fc1aqSNArXHTz7G2GjZQDqMlqK7Jso=";
};
sourceRoot = "${src.name}/libs/checkpoint-sqlite";
-
build-system = [ poetry-core ];
+
build-system = [ hatchling ];
dependencies = [
aiosqlite
langgraph-checkpoint
+
sqlite-vec
];
pythonRelaxDeps = [
"aiosqlite"
+
+
# Bug: version is showing up as 0.0.0
+
# https://github.com/NixOS/nixpkgs/issues/427197
+
"sqlite-vec"
# Checkpoint clients are lagging behind langgraph-checkpoint
"langgraph-checkpoint"
···
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
+
sqlite
+
];
+
+
disabledTestPaths = [
+
# Failed: 'flaky' not found in `markers` configuration option
+
"tests/test_ttl.py"
+
];
+
+
disabledTests = [
+
# AssertionError: (fails object comparison due to extra runtime fields)
+
# https://github.com/langchain-ai/langgraph/issues/5604
+
"test_combined_metadata"
+
"test_asearch"
+
"test_search"
];
passthru.updateScript = gitUpdater {
+8 -4
pkgs/development/python-modules/langgraph-checkpoint/default.nix
···
fetchFromGitHub,
# build system
-
poetry-core,
+
hatchling,
# dependencies
langchain-core,
···
# testing
dataclasses-json,
+
numpy,
+
pandas,
pytest-asyncio,
pytest-mock,
pytestCheckHook,
···
buildPythonPackage rec {
pname = "langgraph-checkpoint";
-
version = "2.0.26";
+
version = "2.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
tag = "checkpoint==${version}";
-
hash = "sha256-DSkjaxUfpsOg2ex0dgfO/UJ7WiQb5wQsAGgHPTckF6o=";
+
hash = "sha256-UY3AChShKfOrtOQzOm5vi3Yy3rlBc+TAje9L2L6My/U=";
};
sourceRoot = "${src.name}/libs/checkpoint";
-
build-system = [ poetry-core ];
+
build-system = [ hatchling ];
dependencies = [
langchain-core
···
nativeCheckInputs = [
dataclasses-json
+
numpy
+
pandas
pytest-asyncio
pytest-mock
pytestCheckHook
+9 -4
pkgs/development/python-modules/langgraph-prebuilt/default.nix
···
fetchFromGitHub,
# build-system
-
poetry-core,
+
hatchling,
# dependencies
langchain-core,
···
pytest-asyncio,
pytest-mock,
pytestCheckHook,
+
syrupy,
xxhash,
# passthru
···
# It exists so the langgraph team can iterate on it without having to rebuild langgraph.
buildPythonPackage rec {
pname = "langgraph-prebuilt";
-
version = "0.1.8";
+
version = "0.6.1";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
tag = "prebuilt==${version}";
-
hash = "sha256-mYcj7HRbB5H6G0CVLOICKgdtR5Wlv9WeTIBjQJqlhOE=";
+
hash = "sha256-8mubZSV1CDgYzykKaaWqn04yJldAgdGmgZDm54towWc=";
};
sourceRoot = "${src.name}/libs/prebuilt";
-
build-system = [ poetry-core ];
+
build-system = [ hatchling ];
dependencies = [
langchain-core
···
pytest-asyncio
pytest-mock
pytestCheckHook
+
syrupy
xxhash
];
···
# psycopg.OperationalError: connection failed: connection to server at "127.0.0.1", port 5442 failed: Connection refused
# Is the server running on that host and accepting TCP/IP connections?
"tests/test_react_agent.py"
+
+
# Utilities to import
+
"tests/conftest.py"
];
passthru.updateScript = gitUpdater {
+4 -4
pkgs/development/python-modules/langgraph-sdk/default.nix
···
fetchFromGitHub,
# build-system
-
poetry-core,
+
hatchling,
# dependencies
httpx,
···
buildPythonPackage rec {
pname = "langgraph-sdk";
-
version = "0.1.69";
+
version = "0.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
tag = "sdk==${version}";
-
hash = "sha256-MRs5crbUEak/fr17+lerGFY+xTm7sanUW1lZXbPBAeg=";
+
hash = "sha256-uhVdtB/fLy0hfZKfzNV2eoO83bvKppGVl4Lm8IEscL0=";
};
sourceRoot = "${src.name}/libs/sdk-py";
-
build-system = [ poetry-core ];
+
build-system = [ hatchling ];
dependencies = [
httpx
+12 -13
pkgs/development/python-modules/langgraph/default.nix
···
fetchFromGitHub,
# build-system
-
poetry-core,
+
hatchling,
# dependencies
langchain-core,
langgraph-checkpoint,
langgraph-prebuilt,
langgraph-sdk,
+
pydantic,
xxhash,
# tests
···
langgraph-checkpoint-sqlite,
langsmith,
psycopg,
-
pydantic,
pytest-asyncio,
pytest-mock,
pytest-repeat,
···
}:
buildPythonPackage rec {
pname = "langgraph";
-
version = "0.4.1";
+
version = "0.6.1";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
tag = version;
-
hash = "sha256-bTxtfduuuyRITZqhk15aWwxNwiZ7TMTgBOEPat6zVIc=";
+
hash = "sha256-8mubZSV1CDgYzykKaaWqn04yJldAgdGmgZDm54towWc=";
};
postgresqlTestSetupPost = ''
-
substituteInPlace tests/conftest.py \
+
substituteInPlace tests/conftest_store.py \
+
--replace-fail "DEFAULT_POSTGRES_URI = \"postgres://postgres:postgres@localhost:5442/\"" "DEFAULT_POSTGRES_URI = \"postgres:///$PGDATABASE\""
+
substituteInPlace tests/conftest_checkpointer.py \
--replace-fail "DEFAULT_POSTGRES_URI = \"postgres://postgres:postgres@localhost:5442/\"" "DEFAULT_POSTGRES_URI = \"postgres:///$PGDATABASE\""
'';
sourceRoot = "${src.name}/libs/langgraph";
-
build-system = [ poetry-core ];
+
build-system = [ hatchling ];
dependencies = [
langchain-core
langgraph-checkpoint
langgraph-prebuilt
langgraph-sdk
+
pydantic
xxhash
];
···
];
disabledTests = [
-
# test is flaky due to pydantic error on the exception
-
"test_doesnt_warn_valid_schema"
-
"test_tool_node_inject_store"
-
# Disabling tests that requires to create new random databases
"test_cancel_graph_astream"
"test_cancel_graph_astream_events_v2"
···
"test_pending_writes_resume"
"test_remove_message_via_state_update"
-
# pydantic.errors.PydanticForbiddenQualifier,
-
# see https://github.com/langchain-ai/langgraph/issues/4360
-
"test_state_schema_optional_values"
+
# Requires `langgraph dev` to be running
+
"test_remote_graph_basic_invoke"
+
"test_remote_graph_stream_messages_tuple"
];
disabledTestPaths = [
+3 -3
pkgs/development/python-modules/ormsgpack/default.nix
···
buildPythonPackage rec {
pname = "ormsgpack";
-
version = "1.9.1";
+
version = "1.10.0";
pyproject = true;
src = fetchFromGitHub {
owner = "aviramha";
repo = "ormsgpack";
tag = version;
-
hash = "sha256-lFKHXTYtYEjtu+nXemQnB0yjkFD69gr0n7XfJ1Hy3J0=";
+
hash = "sha256-7VESiHAkDynf31xrQQh0Vv5vSfMOjnVXRFackUQdB68=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit src;
-
hash = "sha256-jOEryJcE5+b0Y588fbDSyPcz5h4zYz2+40+lIfRDV1M=";
+
hash = "sha256-um6PzwL0M5lz4gDkTO/lvWJ0wwuCneNKRW8qysKMmM0=";
};
build-system = [