2024-08-18 10:08:57 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
langgraph-checkpoint,
|
|
|
|
aiosqlite,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
langgraph-sdk,
|
|
|
|
poetry-core,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "langgraph-checkpoint-sqlite";
|
2025-03-01 13:36:28 -08:00
|
|
|
version = "2.0.5";
|
2024-08-18 10:08:57 +02:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "langchain-ai";
|
|
|
|
repo = "langgraph";
|
2025-02-06 21:50:22 -08:00
|
|
|
tag = "checkpointsqlite==${version}";
|
2025-03-01 13:36:28 -08:00
|
|
|
hash = "sha256-8JNPKaaKDM7VROd1n9TDALN6yxKRz1CuAultBcqBMG0=";
|
2024-08-18 10:08:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "${src.name}/libs/checkpoint-sqlite";
|
|
|
|
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
aiosqlite
|
|
|
|
langgraph-checkpoint
|
|
|
|
];
|
|
|
|
|
2025-03-28 17:08:46 +01:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"aiosqlite"
|
|
|
|
|
|
|
|
# Checkpoint clients are lagging behind langgraph-checkpoint
|
|
|
|
"langgraph-checkpoint"
|
|
|
|
];
|
2024-12-06 12:08:20 -08:00
|
|
|
|
2024-08-18 10:08:57 +02:00
|
|
|
pythonImportsCheck = [ "langgraph.checkpoint.sqlite" ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru = {
|
2025-02-02 14:32:26 -08:00
|
|
|
inherit (langgraph-sdk) updateScript;
|
|
|
|
skipBulkUpdate = true; # Broken, see https://github.com/NixOS/nixpkgs/issues/379898
|
2024-08-18 10:08:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2025-02-06 21:50:22 -08:00
|
|
|
changelog = "https://github.com/langchain-ai/langgraph/releases/tag/checkpointsqlite==${version}";
|
2024-08-18 10:08:57 +02:00
|
|
|
description = "Library with a SQLite implementation of LangGraph checkpoint saver";
|
|
|
|
homepage = "https://github.com/langchain-ai/langgraph/tree/main/libs/checkpoint-sqlite";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
drupol
|
|
|
|
sarahec
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|