Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.9 kB · 91 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192{ lib, buildPythonPackage, fetchFromGitHub,
# build system hatchling,
# dependencies aiosqlite, langgraph-checkpoint, sqlite-vec,
# testing pytest-asyncio, pytestCheckHook, sqlite,
# passthru gitUpdater,}:
buildPythonPackage rec { pname = "langgraph-checkpoint-sqlite"; version = "2.0.10"; pyproject = true;
src = fetchFromGitHub { owner = "langchain-ai"; repo = "langgraph"; tag = "checkpointsqlite==${version}"; hash = "sha256-570rXAxS4p2b7fc1aqSNArXHTz7G2GjZQDqMlqK7Jso="; };
sourceRoot = "${src.name}/libs/checkpoint-sqlite";
build-system = [ hatchling ];
dependencies = [ aiosqlite langgraph-checkpoint sqlite-vec ];
pythonRelaxDeps = [ "aiosqlite"
# Bug: version is showing up as 0.0.0 # https://github.com/NixOS/nixpkgs/issues/427197 "sqlite-vec"
# Checkpoint clients are lagging behind langgraph-checkpoint "langgraph-checkpoint" ];
pythonImportsCheck = [ "langgraph.checkpoint.sqlite" ];
nativeCheckInputs = [ pytest-asyncio pytestCheckHook sqlite ];
disabledTestPaths = [ # Failed: 'flaky' not found in `markers` configuration option "tests/test_ttl.py" ];
disabledTests = [ # AssertionError: (fails object comparison due to extra runtime fields) # https://github.com/langchain-ai/langgraph/issues/5604 "test_combined_metadata" "test_asearch" "test_search" ];
passthru.updateScript = gitUpdater { rev-prefix = "checkpointsqlite=="; };
meta = { changelog = "https://github.com/langchain-ai/langgraph/releases/tag/${src.tag}"; 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 ]; };}