Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
rev = "refs/tags/checkpointduckdb==${version}";
tag = "checkpointduckdb==${version}";
hash = "sha256-wSrlFBfTcTgyE46uwv9GCyxRT1xVafgWyP2g87KUTAU=";
};

Expand All @@ -36,6 +36,9 @@ buildPythonPackage rec {
langgraph-checkpoint
];

# Checkpoint clients are lagging behind langgraph-checkpoint
pythonRelaxDeps = [ "langgraph-checkpoint" ];

pythonImportsCheck = [ "langgraph.checkpoint.duckdb" ];

nativeCheckInputs = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
buildPythonPackage,
fetchFromGitHub,
langgraph-checkpoint,
langgraph-sdk,
orjson,
psycopg,
psycopg-pool,
langgraph-sdk,
poetry-core,
pythonOlder,
pgvector,
postgresql,
postgresqlTestHook,
pytestCheckHook,
Expand All @@ -18,21 +19,22 @@

buildPythonPackage rec {
pname = "langgraph-checkpoint-postgres";
version = "2.0.2";
version = "2.0.8";
pyproject = true;

disabled = pythonOlder "3.10";

src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
rev = "refs/tags/checkpointpostgres==${version}";
hash = "sha256-E3gdHWUYelR/xI3Cv3T2uVwsyt+tOkw9MjX7I2RAuiQ=";
tag = "checkpointpostgres==${version}";
hash = "sha256-yHLkFUp+q/XOt9Y9Dog2Tgs/K2CU7Bfkkucdr9vAKSg=";
};

postgresqlTestSetupPost = ''
substituteInPlace tests/conftest.py \
--replace-fail "DEFAULT_URI = \"postgres://postgres:postgres@localhost:5441/postgres?sslmode=disable\"" "DEFAULT_URI = \"postgres:///$PGDATABASE\""
--replace-fail "DEFAULT_URI = \"postgres://postgres:postgres@localhost:5441/postgres?sslmode=disable\"" "DEFAULT_URI = \"postgres:///$PGDATABASE\"" \
--replace-fail "DEFAULT_POSTGRES_URI = \"postgres://postgres:postgres@localhost:5441/\"" "DEFAULT_POSTGRES_URI = \"postgres:///\""
'';

sourceRoot = "${src.name}/libs/checkpoint-postgres";
Expand All @@ -46,19 +48,41 @@ buildPythonPackage rec {
psycopg-pool
];

pythonRelaxDeps = [ "psycopg-pool" ];
pythonRelaxDeps = [
"langgraph-checkpoint"
"psycopg-pool"
];

doCheck = !(stdenvNoCC.hostPlatform.isDarwin);

pythonImportsCheck = [ "langgraph.checkpoint.postgres" ];

nativeCheckInputs = [
postgresql
postgresqlTestHook
pytest-asyncio
pytestCheckHook
(postgresql.withPackages (p: with p; [ pgvector ]))
postgresqlTestHook
];

preCheck = ''
export postgresqlTestUserOptions="LOGIN SUPERUSER"
'';

disabledTests = [
# psycopg.errors.FeatureNotSupported: extension "vector" is not available
# /nix/store/...postgresql-and-plugins-16.4/share/postgresql/extension/vector.control": No such file or directory.
"test_embed_with_path"
"test_embed_with_path_sync"
"test_scores"
"test_search_sorting"
"test_vector_store_initialization"
"test_vector_insert_with_auto_embedding"
"test_vector_update_with_embedding"
"test_vector_search_with_filters"
"test_vector_search_pagination"
"test_vector_search_edge_cases"
];

pythonImportsCheck = [ "langgraph.checkpoint.postgres" ];

passthru = {
updateScript = langgraph-sdk.updateScript;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
rev = "refs/tags/checkpointsqlite==${version}";
tag = "checkpointsqlite==${version}";
hash = "sha256-dh+cjcOp6rGFntz82VNfVyetcrQBdBFdXk5xFb0aR5c=";
};

Expand All @@ -34,6 +34,9 @@ buildPythonPackage rec {
langgraph-checkpoint
];

# Checkpoint clients are lagging behind langgraph-checkpoint
pythonRelaxDeps = [ "langgraph-checkpoint" ];

pythonImportsCheck = [ "langgraph.checkpoint.sqlite" ];

nativeCheckInputs = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@

buildPythonPackage rec {
pname = "langgraph-checkpoint";
version = "2.0.2";
version = "2.0.8";
pyproject = true;

disabled = pythonOlder "3.9";

src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
rev = "refs/tags/checkpoint==${version}";
hash = "sha256-Mjo6NJ6vYb2E7nk0D/2M7jzr39xRvRRhUZE4tP247to=";
tag = "checkpoint==${version}";
hash = "sha256-obDK6wn+oo8zDQsidogwKTIgT5wuUH/l4y+12cttkd0=";
};

sourceRoot = "${src.name}/libs/checkpoint";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/langgraph-cli/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
rev = "refs/tags/cli==${version}";
tag = "cli==${version}";
hash = "sha256-zTBeDJB1Xu/rWsvEC/L4BRzxyh04lPYV7HQNHoJcskk=";
};

Expand Down
8 changes: 5 additions & 3 deletions pkgs/development/python-modules/langgraph-sdk/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@

buildPythonPackage rec {
pname = "langgraph-sdk";
version = "0.1.35";
version = "0.1.43";
pyproject = true;

src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
rev = "refs/tags/sdk==${version}";
hash = "sha256-HWUGRoe5S0HPfOEbqUnFYLVrHe3SJtk3U8cy1JON050=";
tag = "sdk==${version}";
hash = "sha256-mG04V36Aa5Df5pUgr+xWej8i2XYx+O/N61sSzxwN9Go=";
};

sourceRoot = "${src.name}/libs/sdk-py";
Expand All @@ -37,6 +37,8 @@ buildPythonPackage rec {
orjson
];

disabledTests = [ "test_aevaluate_results" ]; # Compares execution time to magic number

pythonImportsCheck = [ "langgraph_sdk" ];

passthru = {
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/python-modules/langgraph/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@

buildPythonPackage rec {
pname = "langgraph";
version = "0.2.43";
version = "0.2.56";
pyproject = true;

src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
rev = "refs/tags/${version}";
hash = "sha256-8xTjWBq6GSl6X2IId3roS3ZNM/h76EGPitS08YQ4e7Y=";
tag = version;
hash = "sha256-X/IMNEmggu9bSJFUaTohbFYxGZBguf+eFb3ObmQGplk=";
};

postgresqlTestSetupPost = ''
Expand Down