nixpkgs/pkgs/development/python-modules/langgraph-checkpoint-sqlite/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.4 KiB
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchFromGitHub,
langgraph-checkpoint,
aiosqlite,
pytest-asyncio,
pytestCheckHook,
langgraph-sdk,
poetry-core,
}:
buildPythonPackage rec {
pname = "langgraph-checkpoint-sqlite";
version = "2.0.5";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
tag = "checkpointsqlite==${version}";
hash = "sha256-8JNPKaaKDM7VROd1n9TDALN6yxKRz1CuAultBcqBMG0=";
};
sourceRoot = "${src.name}/libs/checkpoint-sqlite";
build-system = [ poetry-core ];
dependencies = [
aiosqlite
langgraph-checkpoint
];
pythonRelaxDeps = [
"aiosqlite"
# Checkpoint clients are lagging behind langgraph-checkpoint
"langgraph-checkpoint"
];
pythonImportsCheck = [ "langgraph.checkpoint.sqlite" ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
passthru = {
inherit (langgraph-sdk) updateScript;
skipBulkUpdate = true; # Broken, see https://github.com/NixOS/nixpkgs/issues/379898
};
meta = {
changelog = "https://github.com/langchain-ai/langgraph/releases/tag/checkpointsqlite==${version}";
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
];
};
}