Unverified Commit 6c5e3fdb authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

python3Packages.langgraph*: Ecosystem update 20250207 (#378968)

parents 2ffa0d97 b4014e21
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -9,21 +9,18 @@
  pytestCheckHook,
  langgraph-sdk,
  poetry-core,
  pythonOlder,
}:

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

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "langchain-ai";
    repo = "langgraph";
    tag = "checkpointduckdb==${version}";
    hash = "sha256-wSrlFBfTcTgyE46uwv9GCyxRT1xVafgWyP2g87KUTAU=";
    hash = "sha256-ppgViNRkkCTOGPfdB04DOnEzFgHN1KGDLLVjuwhRgNE=";
  };

  sourceRoot = "${src.name}/libs/checkpoint-duckdb";
@@ -49,10 +46,9 @@ buildPythonPackage rec {
  disabledTests = [ "test_basic_store_ops" ]; # depends on networking

  passthru = {
    updateScript = langgraph-sdk.updateScript;
    inherit (langgraph-sdk) updateScript;

    # multiple tags confuse the bulk updater
    skipBulkUpdate = true;
    skipBulkUpdate = true; # Broken, see https://github.com/NixOS/nixpkgs/issues/379898
  };

  meta = {
+4 −9
Original line number Diff line number Diff line
@@ -8,21 +8,18 @@
  pytestCheckHook,
  langgraph-sdk,
  poetry-core,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "langgraph-checkpoint-sqlite";
  version = "2.0.1";
  version = "2.0.3";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "langchain-ai";
    repo = "langgraph";
    tag = "checkpointsqlite==${version}";
    hash = "sha256-dh+cjcOp6rGFntz82VNfVyetcrQBdBFdXk5xFb0aR5c=";
    hash = "sha256-u3tKh63bOu+Ko2YynEfxQ/nGElEfwwTQ6Z1RhqF51Qs=";
  };

  sourceRoot = "${src.name}/libs/checkpoint-sqlite";
@@ -45,10 +42,8 @@ buildPythonPackage rec {
  ];

  passthru = {
    updateScript = langgraph-sdk.updateScript;

    # multiple tags confuse the bulk updater
    skipBulkUpdate = true;
    inherit (langgraph-sdk) updateScript;
    skipBulkUpdate = true; # Broken, see https://github.com/NixOS/nixpkgs/issues/379898
  };

  meta = {
+3 −8
Original line number Diff line number Diff line
@@ -10,21 +10,18 @@
  pytest-asyncio,
  pytest-mock,
  pytestCheckHook,
  pythonOlder,
}:

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

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "langchain-ai";
    repo = "langgraph";
    tag = "checkpoint==${version}";
    hash = "sha256-obDK6wn+oo8zDQsidogwKTIgT5wuUH/l4y+12cttkd0=";
    hash = "sha256-Bs8XWSyI/6a756iWXT40vvNIe/XZ/vnMsZbXjTW3770=";
  };

  sourceRoot = "${src.name}/libs/checkpoint";
@@ -53,9 +50,7 @@ buildPythonPackage rec {

  passthru = {
    updateScript = langgraph-sdk.updateScript;

    # multiple tags confuse the bulk updater
    skipBulkUpdate = true;
    skipBulkUpdate = true; # Broken, see https://github.com/NixOS/nixpkgs/issues/379898
  };

  meta = {
+15 −11
Original line number Diff line number Diff line
@@ -3,16 +3,22 @@
  buildPythonPackage,
  click,
  fetchFromGitHub,
  nix-update-script,
  poetry-core,

  # for update script
  langgraph-sdk,

  # testing
  pytest-asyncio,
  pytestCheckHook,
  docker-compose,

  pythonOlder,
}:

buildPythonPackage rec {
  pname = "langgraph-cli";
  version = "0.1.52";
  version = "0.1.71";
  pyproject = true;

  disabled = pythonOlder "3.10";
@@ -21,7 +27,7 @@ buildPythonPackage rec {
    owner = "langchain-ai";
    repo = "langgraph";
    tag = "cli==${version}";
    hash = "sha256-zTBeDJB1Xu/rWsvEC/L4BRzxyh04lPYV7HQNHoJcskk=";
    hash = "sha256-bTW+je4wuoR0YX5T1wdAee4w/T2jMTQybLLpCxouJxA=";
  };

  sourceRoot = "${src.name}/libs/cli";
@@ -33,6 +39,7 @@ buildPythonPackage rec {
  nativeCheckInputs = [
    pytest-asyncio
    pytestCheckHook
    docker-compose
  ];

  pytestFlagsArray = [ "tests/unit_tests" ];
@@ -48,18 +55,15 @@ buildPythonPackage rec {
    "test_config_to_compose_end_to_end"
    "test_config_to_compose_simple_config"
    "test_config_to_compose_watch"
    # Tests exit value, needs to happen in a passthru test
    "test_dockerfile_command_with_docker_compose"
  ];

  passthru.updateScript = nix-update-script {
    extraArgs = [
      "--version-regex"
      "cli==(.*)"
    ];
  passthru = {
    inherit (langgraph-sdk) updateScript;
    skipBulkUpdate = true; # Broken, see https://github.com/NixOS/nixpkgs/issues/379898
  };

  # multiple tags confuse the bulk updater
  passthru.skipBulkUpdate = true;

  meta = {
    description = "Official CLI for LangGraph API";
    homepage = "https://github.com/langchain-ai/langgraph/libs/cli";
+5 −5
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@
  httpx,
  httpx-sse,
  orjson,
  typing-extensions,

  # passthru
  writeScript,
@@ -17,14 +18,14 @@

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

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

  sourceRoot = "${src.name}/libs/sdk-py";
@@ -35,6 +36,7 @@ buildPythonPackage rec {
    httpx
    httpx-sse
    orjson
    typing-extensions
  ];

  disabledTests = [ "test_aevaluate_results" ]; # Compares execution time to magic number
@@ -54,9 +56,7 @@ buildPythonPackage rec {
      nix-update --commit --version-regex 'checkpointpostgres==(.*)' python3Packages.langgraph-checkpoint-postgres
      nix-update --commit --version-regex 'checkpointsqlite==(.*)' python3Packages.langgraph-checkpoint-sqlite
    '';

    # multiple tags confuse the bulk updater
    skipBulkUpdate = true;
    skipBulkUpdate = true; # Broken, see https://github.com/NixOS/nixpkgs/issues/379898
  };

  meta = {
Loading