Unverified Commit 20f5ca94 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

python3Packages.langgraph* 20241006 update (#346948)

parents 7054aa15 f018dd26
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 = ''
+2 −2
Original line number Diff line number Diff line
@@ -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";
+9 −2
Original line number Diff line number Diff line
@@ -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
  ];

+2 −2
Original line number Diff line number Diff line
@@ -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";
+6 −3
Original line number Diff line number Diff line
@@ -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"