Unverified Commit 5df1b9a2 authored by Michael Daniels's avatar Michael Daniels Committed by GitHub
Browse files

python3Packages.langgraph-{checkpoint,-checkpoint-mongodb}: update and fix...

python3Packages.langgraph-{checkpoint,-checkpoint-mongodb}: update and fix from python update script (#493459)
parents e65ef186 4d7e5d82
Loading
Loading
Loading
Loading
+20 −7
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  gitUpdater,

  # build-system
  hatchling,
@@ -12,24 +13,28 @@
  pymongo,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "langgraph-checkpoint-mongodb";
  version = "0.11.0";
  version = "0.3.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "langchain-ai";
    repo = "langchain-mongodb";
    tag = "libs/langchain-mongodb/v${version}";
    hash = "sha256-dO0dASjyNMxnbxZ/ry8lcJxedPdrv6coYiTjOcaT8/0=";
    tag = "libs/langgraph-checkpoint-mongodb/v${finalAttrs.version}";
    hash = "sha256-vCiZ6Mp6aHmSEkLbeM6qTLJaxH0uoAdq80olTT5saX0=";
  };

  sourceRoot = "${src.name}/libs/langgraph-checkpoint-mongodb";
  sourceRoot = "${finalAttrs.src.name}/libs/langgraph-checkpoint-mongodb";

  build-system = [
    hatchling
  ];

  pythonRelaxDeps = [
    "pymongo"
  ];

  dependencies = [
    langgraph-checkpoint
    langchain-mongodb
@@ -41,14 +46,22 @@ buildPythonPackage rec {
  # Connection refused (to localhost:27017) for all tests
  doCheck = false;

  passthru = {
    # python updater script sets the wrong tag
    skipBulkUpdate = true;
    updateScript = gitUpdater {
      rev-prefix = "libs/langgraph-checkpoint-mongodb/v";
    };
  };

  # no pythonImportsCheck as this package does not provide any direct imports
  pythonImportsCheck = [ "langgraph.checkpoint.mongodb" ];

  meta = {
    description = "Integrations between MongoDB, Atlas, LangChain, and LangGraph";
    homepage = "https://github.com/langchain-ai/langchain-mongodb/tree/main/libs/langgraph-checkpoint-mongodb";
    changelog = "https://github.com/langchain-ai/langchain-mongodb/releases/tag/${src.tag}";
    changelog = "https://github.com/langchain-ai/langchain-mongodb/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ sarahec ];
  };
}
})
+2 −2
Original line number Diff line number Diff line
@@ -26,14 +26,14 @@

buildPythonPackage rec {
  pname = "langgraph-checkpoint";
  version = "3.0.1";
  version = "4.0.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "langchain-ai";
    repo = "langgraph";
    tag = "checkpoint==${version}";
    hash = "sha256-3hh1KyEIsp9JzhaJW1ycp179FGpggPYzg6OwnD/cTBM=";
    hash = "sha256-IE9Y+kFkDN49SuwvTNwa2kK+Hig18sJPZmZCqHUP3DM=";
  };

  sourceRoot = "${src.name}/libs/checkpoint";