python3Packages.langgraph-{checkpoint,-checkpoint-mongodb}: update and fix from python update script (#493459)

This commit is contained in:
Michael Daniels
2026-02-28 03:08:01 +00:00
committed by GitHub
2 changed files with 22 additions and 9 deletions
@@ -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 ];
};
}
})
@@ -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";