Merge: matrix-synapse: 1.122.0 -> 1.123.0 (#378018)
[NixPkgs.git] / pkgs / development / python-modules / langgraph-checkpoint-sqlite / default.nix
blob44b7c4bbaec407c1de5a1fb2204e14a1192e1555
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   langgraph-checkpoint,
6   aiosqlite,
7   pytest-asyncio,
8   pytestCheckHook,
9   langgraph-sdk,
10   poetry-core,
11   pythonOlder,
14 buildPythonPackage rec {
15   pname = "langgraph-checkpoint-sqlite";
16   version = "2.0.1";
17   pyproject = true;
19   disabled = pythonOlder "3.9";
21   src = fetchFromGitHub {
22     owner = "langchain-ai";
23     repo = "langgraph";
24     tag = "checkpointsqlite==${version}";
25     hash = "sha256-dh+cjcOp6rGFntz82VNfVyetcrQBdBFdXk5xFb0aR5c=";
26   };
28   sourceRoot = "${src.name}/libs/checkpoint-sqlite";
30   build-system = [ poetry-core ];
32   dependencies = [
33     aiosqlite
34     langgraph-checkpoint
35   ];
37   # Checkpoint clients are lagging behind langgraph-checkpoint
38   pythonRelaxDeps = [ "langgraph-checkpoint" ];
40   pythonImportsCheck = [ "langgraph.checkpoint.sqlite" ];
42   nativeCheckInputs = [
43     pytest-asyncio
44     pytestCheckHook
45   ];
47   passthru = {
48     updateScript = langgraph-sdk.updateScript;
49   };
51   meta = {
52     changelog = "https://github.com/langchain-ai/langgraph/releases/tag/checkpointsqlite==${version}";
53     description = "Library with a SQLite implementation of LangGraph checkpoint saver";
54     homepage = "https://github.com/langchain-ai/langgraph/tree/main/libs/checkpoint-sqlite";
55     license = lib.licenses.mit;
56     maintainers = with lib.maintainers; [
57       drupol
58       sarahec
59     ];
60   };