From f018dd26aeb1225241695bac1a243f1ab38966de Mon Sep 17 00:00:00 2001 From: sarahec Date: Sun, 6 Oct 2024 12:46:45 -0700 Subject: [PATCH] python3Packages.langgraph-* 2.0.0 --- .../langgraph-checkpoint-postgres/default.nix | 4 ++-- .../langgraph-checkpoint-sqlite/default.nix | 4 ++-- .../python-modules/langgraph-checkpoint/default.nix | 11 +++++++++-- .../python-modules/langgraph-sdk/default.nix | 4 ++-- pkgs/development/python-modules/langgraph/default.nix | 9 ++++++--- 5 files changed, 21 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/langgraph-checkpoint-postgres/default.nix b/pkgs/development/python-modules/langgraph-checkpoint-postgres/default.nix index 7d511994b6d5..b2091019084d 100644 --- a/pkgs/development/python-modules/langgraph-checkpoint-postgres/default.nix +++ b/pkgs/development/python-modules/langgraph-checkpoint-postgres/default.nix @@ -18,7 +18,7 @@ buildPythonPackage rec { pname = "langgraph-checkpoint-postgres"; - version = "1.0.6"; + version = "2.0.0"; pyproject = true; disabled = pythonOlder "3.10"; @@ -27,7 +27,7 @@ buildPythonPackage rec { owner = "langchain-ai"; repo = "langgraph"; rev = "refs/tags/checkpointpostgres==${version}"; - hash = "sha256-F9sgZQQBFs5hDUsaR5BI9ERve9L8LTUvEKOgyz5ioqY="; + hash = "sha256-piBWr6F1YWML9D8+Bk4KvReQJhgb1Z7Xf5q8bcVUeEQ="; }; postgresqlTestSetupPost = '' diff --git a/pkgs/development/python-modules/langgraph-checkpoint-sqlite/default.nix b/pkgs/development/python-modules/langgraph-checkpoint-sqlite/default.nix index e94cca80eb54..3bf88e24f998 100644 --- a/pkgs/development/python-modules/langgraph-checkpoint-sqlite/default.nix +++ b/pkgs/development/python-modules/langgraph-checkpoint-sqlite/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "langgraph-checkpoint-sqlite"; - version = "1.0.3"; + version = "2.0.0"; pyproject = true; disabled = pythonOlder "3.9"; @@ -22,7 +22,7 @@ buildPythonPackage rec { owner = "langchain-ai"; repo = "langgraph"; rev = "refs/tags/checkpointsqlite==${version}"; - hash = "sha256-/pHJtK691anqn2It4ZstCGXJS0JGtdKZvqS9f3ly+FQ="; + hash = "sha256-aG7kHdlOkrjfYcdDWwCum0mQvWNMlF2CcEDlkzbv4Zw="; }; sourceRoot = "${src.name}/libs/checkpoint-sqlite"; diff --git a/pkgs/development/python-modules/langgraph-checkpoint/default.nix b/pkgs/development/python-modules/langgraph-checkpoint/default.nix index 3857de5bd735..b25b03b420c9 100644 --- a/pkgs/development/python-modules/langgraph-checkpoint/default.nix +++ b/pkgs/development/python-modules/langgraph-checkpoint/default.nix @@ -5,15 +5,17 @@ fetchFromGitHub, langchain-core, langgraph-sdk, + msgpack, poetry-core, pytest-asyncio, + pytest-mock, pytestCheckHook, pythonOlder, }: buildPythonPackage rec { pname = "langgraph-checkpoint"; - version = "1.0.9"; + version = "2.0.0"; pyproject = true; disabled = pythonOlder "3.9"; @@ -22,7 +24,7 @@ buildPythonPackage rec { owner = "langchain-ai"; repo = "langgraph"; rev = "refs/tags/checkpoint==${version}"; - hash = "sha256-3gm+L67pPAKpY1kqnX1lPnca40KoBVZdRZ1Cy6D0dzU="; + hash = "sha256-LBIQyDWKmT89OgYUk3LFIZ5VDXX9KQXFkR9A8XHOCBQ="; }; sourceRoot = "${src.name}/libs/checkpoint"; @@ -31,11 +33,16 @@ buildPythonPackage rec { dependencies = [ langchain-core ]; + propagatedBuildInputs = [ msgpack ]; + + pythonRelaxDeps = [ "msgpack" ]; # Can drop after msgpack 1.0.10 lands in nixpkgs + pythonImportsCheck = [ "langgraph.checkpoint" ]; nativeCheckInputs = [ dataclasses-json pytest-asyncio + pytest-mock pytestCheckHook ]; diff --git a/pkgs/development/python-modules/langgraph-sdk/default.nix b/pkgs/development/python-modules/langgraph-sdk/default.nix index 710433dfe134..1ce25fc35aa9 100644 --- a/pkgs/development/python-modules/langgraph-sdk/default.nix +++ b/pkgs/development/python-modules/langgraph-sdk/default.nix @@ -17,14 +17,14 @@ buildPythonPackage rec { pname = "langgraph-sdk"; - version = "0.1.30"; + version = "0.1.32"; pyproject = true; src = fetchFromGitHub { owner = "langchain-ai"; repo = "langgraph"; rev = "refs/tags/sdk==${version}"; - hash = "sha256-gI12XuxFplqIKVlVjeO60YxT7WG/SSsZ0aWfjg5bHIs="; + hash = "sha256-qOxtrRbdK0M4aFWJX0SFn7U27rvAyqu53iCbYZX3s8A="; }; sourceRoot = "${src.name}/libs/sdk-py"; diff --git a/pkgs/development/python-modules/langgraph/default.nix b/pkgs/development/python-modules/langgraph/default.nix index 087db330d195..20e8b241033d 100644 --- a/pkgs/development/python-modules/langgraph/default.nix +++ b/pkgs/development/python-modules/langgraph/default.nix @@ -36,14 +36,14 @@ buildPythonPackage rec { pname = "langgraph"; - version = "0.2.21"; + version = "0.2.34"; pyproject = true; src = fetchFromGitHub { owner = "langchain-ai"; repo = "langgraph"; rev = "refs/tags/${version}"; - hash = "sha256-1Ch2V85omAKnXK9rMihNtyjIoOvmVUm8Dbdo5GBoik4="; + hash = "sha256-5Suyj6pEslgR383MkYGGz7IC2A0A++02YooZmi8YtyM="; }; postgresqlTestSetupPost = '' @@ -88,7 +88,10 @@ buildPythonPackage rec { ]; disabledTests = [ - "test_doesnt_warn_valid_schema" # test is flaky due to pydantic error on the exception + # 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"