51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
hatchling,
|
|
|
|
# dependencies
|
|
langgraph-checkpoint,
|
|
langchain-mongodb,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "langgraph-store-mongodb";
|
|
version = "0.1.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "langchain-ai";
|
|
repo = "langchain-mongodb";
|
|
tag = "libs/langgraph-store-mongodb/v${version}";
|
|
hash = "sha256-/dafQK6iy85rMt7FMVb3ssaIop9JjjrwajaHAfBUp7g=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/libs/langgraph-store-mongodb";
|
|
|
|
build-system = [
|
|
hatchling
|
|
];
|
|
|
|
dependencies = [
|
|
langgraph-checkpoint
|
|
langchain-mongodb
|
|
];
|
|
|
|
# Connection Refused (to mongodb://localhost:27017)
|
|
# Note that `langchain-mongodb` runs the same tests with mocks.
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "langgraph.store.mongodb" ];
|
|
|
|
meta = {
|
|
description = "Integrations between MongoDB, Atlas, LangChain, and LangGraph";
|
|
homepage = "https://github.com/langchain-ai/langchain-mongodb/tree/main/libs/langgraph-store-mongodb";
|
|
changelog = "https://github.com/langchain-ai/langchain-mongodb/releases/tag/${src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ sarahec ];
|
|
};
|
|
}
|