diff --git a/pkgs/development/python-modules/langgraph-checkpoint-mongodb/default.nix b/pkgs/development/python-modules/langgraph-checkpoint-mongodb/default.nix index db21b3b8fad7..f16e5a605c15 100644 --- a/pkgs/development/python-modules/langgraph-checkpoint-mongodb/default.nix +++ b/pkgs/development/python-modules/langgraph-checkpoint-mongodb/default.nix @@ -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 ]; }; -} +}) diff --git a/pkgs/development/python-modules/langgraph-checkpoint/default.nix b/pkgs/development/python-modules/langgraph-checkpoint/default.nix index a2b12587dc51..4d1eb363635c 100644 --- a/pkgs/development/python-modules/langgraph-checkpoint/default.nix +++ b/pkgs/development/python-modules/langgraph-checkpoint/default.nix @@ -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";