Unverified Commit 7ce922a5 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python3Packages.langgraph*: fix bad bulk update, add `skipBulkUpdate=true` (#437178)

parents 9b409248 5610941d
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -26,14 +26,14 @@

buildPythonPackage rec {
  pname = "langgraph-checkpoint-postgres";
  version = "2.1.1";
  version = "2.0.23";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "langchain-ai";
    repo = "langgraph";
    tag = "checkpoint==${version}";
    hash = "sha256-UY3AChShKfOrtOQzOm5vi3Yy3rlBc+TAje9L2L6My/U=";
    tag = "checkpointpostgres==${version}";
    hash = "sha256-QAzT8T3bf3R3gwI/iWDYYDz0SxgLZsP61oMk72dYz4s=";
  };

  postgresqlTestSetupPost = ''
@@ -93,9 +93,13 @@ buildPythonPackage rec {

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

  passthru.updateScript = gitUpdater {
  passthru = {
    # python updater script sets the wrong tag
    skipBulkUpdate = true;
    updateScript = gitUpdater {
      rev-prefix = "checkpointpostgres==";
    };
  };

  meta = {
    description = "Library with a Postgres implementation of LangGraph checkpoint saver";
+6 −2
Original line number Diff line number Diff line
@@ -74,9 +74,13 @@ buildPythonPackage rec {
    "test_search"
  ];

  passthru.updateScript = gitUpdater {
  passthru = {
    # python updater script sets the wrong tag
    skipBulkUpdate = true;
    updateScript = gitUpdater {
      rev-prefix = "checkpointsqlite==";
    };
  };

  meta = {
    changelog = "https://github.com/langchain-ai/langgraph/releases/tag/${src.tag}";
+6 −2
Original line number Diff line number Diff line
@@ -63,9 +63,13 @@ buildPythonPackage rec {
    "test_embed_with_path"
  ];

  passthru.updateScript = gitUpdater {
  passthru = {
    # python updater script sets the wrong tag
    skipBulkUpdate = true;
    updateScript = gitUpdater {
      rev-prefix = "checkpoint==";
    };
  };

  meta = {
    changelog = "https://github.com/langchain-ai/langgraph/releases/tag/${src.tag}";
+9 −5
Original line number Diff line number Diff line
@@ -24,14 +24,14 @@

buildPythonPackage rec {
  pname = "langgraph-cli";
  version = "2.1.1";
  version = "0.4.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "langchain-ai";
    repo = "langgraph";
    tag = "checkpoint==${version}";
    hash = "sha256-UY3AChShKfOrtOQzOm5vi3Yy3rlBc+TAje9L2L6My/U=";
    tag = "cli==${version}";
    hash = "sha256-/SPrX5O7Tt7fhATqN2fS7wSM+CJTY3QLmlUbfaCoFzo=";
  };

  sourceRoot = "${src.name}/libs/cli";
@@ -80,9 +80,13 @@ buildPythonPackage rec {
    "test_build_command_shows_wolfi_warning"
  ];

  passthru.updateScript = gitUpdater {
  passthru = {
    # python updater script sets the wrong tag
    skipBulkUpdate = true;
    updateScript = gitUpdater {
      rev-prefix = "cli==";
    };
  };

  meta = {
    description = "Official CLI for LangGraph API";
+6 −2
Original line number Diff line number Diff line
@@ -89,9 +89,13 @@ buildPythonPackage rec {
    "tests/conftest.py"
  ];

  passthru.updateScript = gitUpdater {
  passthru = {
    # python updater script sets the wrong tag
    skipBulkUpdate = true;
    updateScript = gitUpdater {
      rev-prefix = "prebuilt==";
    };
  };

  meta = {
    description = "Prebuilt agents add-on for Langgraph. Should always be bundled with langgraph";
Loading