Commit e500804b authored by Sarah Clark's avatar Sarah Clark
Browse files

python3Packages.langgraph-checkpoint-postgres: repair broken update, apply skipBulkUpdate

parent bc72db39
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";