63 lines
1.5 KiB
Nix
63 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
|
|
# build-system
|
|
hatchling,
|
|
|
|
# dependencies
|
|
langgraph-checkpoint,
|
|
langchain-mongodb,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "langgraph-store-mongodb";
|
|
version = "0.2.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "langchain-ai";
|
|
repo = "langchain-mongodb";
|
|
tag = "libs/langgraph-store-mongodb/v${finalAttrs.version}";
|
|
hash = "sha256-IXISxo3mC0/FkjGdHTmin6z/fk71ecto+L+VZ6VFdeE=";
|
|
};
|
|
|
|
sourceRoot = "${finalAttrs.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" ];
|
|
|
|
# updater script selects wrong tag
|
|
passthru = {
|
|
skipBulkUpdate = true;
|
|
updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"-vr"
|
|
"libs/langgraph-store-mongodb/v(.*)"
|
|
];
|
|
};
|
|
};
|
|
|
|
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/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ sarahec ];
|
|
};
|
|
})
|