From fc3a6f76fe0f4ca790987d4c3c780f8f2e16efef Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Thu, 20 Nov 2025 13:05:56 -0800 Subject: [PATCH] python3Packages.langgraph-checkpoint-mongdb: init at 0.3.0 --- .../langgraph-checkpoint-mongodb/default.nix | 54 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 4 ++ 2 files changed, 58 insertions(+) create mode 100644 pkgs/development/python-modules/langgraph-checkpoint-mongodb/default.nix diff --git a/pkgs/development/python-modules/langgraph-checkpoint-mongodb/default.nix b/pkgs/development/python-modules/langgraph-checkpoint-mongodb/default.nix new file mode 100644 index 000000000000..18c0059bf130 --- /dev/null +++ b/pkgs/development/python-modules/langgraph-checkpoint-mongodb/default.nix @@ -0,0 +1,54 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + hatchling, + + # dependencies + langgraph-checkpoint, + langchain-mongodb, + pymongo, +}: + +buildPythonPackage rec { + pname = "langgraph-checkpoint-mongodb"; + version = "0.3.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "langchain-ai"; + repo = "langchain-mongodb"; + tag = "libs/langgraph-checkpoint-mongodb/v${version}"; + hash = "sha256-pfgqJ7QPtAxV86HEEaRBMAOCKC8y/iTlZmPzu1szE/o="; + }; + + sourceRoot = "${src.name}/libs/langgraph-checkpoint-mongodb"; + + build-system = [ + hatchling + ]; + + dependencies = [ + langgraph-checkpoint + langchain-mongodb + pymongo + ]; + + enabledTestPaths = [ "tests/unit_tests" ]; + + # Connection refused (to localhost:27017) for all tests + doCheck = false; + + # 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}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ sarahec ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ea29928de797..2b841134f97e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8123,6 +8123,10 @@ self: super: with self; { langgraph-checkpoint = callPackage ../development/python-modules/langgraph-checkpoint { }; + langgraph-checkpoint-mongodb = + callPackage ../development/python-modules/langgraph-checkpoint-mongodb + { }; + langgraph-checkpoint-postgres = callPackage ../development/python-modules/langgraph-checkpoint-postgres { };