657f08b14c
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
68 lines
1.4 KiB
Nix
68 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
dataclasses-json,
|
|
fetchFromGitHub,
|
|
langchain-core,
|
|
langgraph-sdk,
|
|
msgpack,
|
|
poetry-core,
|
|
pytest-asyncio,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "langgraph-checkpoint";
|
|
version = "2.0.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "langchain-ai";
|
|
repo = "langgraph";
|
|
rev = "refs/tags/checkpoint==${version}";
|
|
hash = "sha256-BDuc6PpziOFIsPpDets7OM2Z+VJ6ekxKpkAuoavDdmI=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/libs/checkpoint";
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [ langchain-core ];
|
|
|
|
propagatedBuildInputs = [ msgpack ];
|
|
|
|
pythonRelaxDeps = [ "msgpack" ]; # Can drop after msgpack 1.0.10 lands in nixpkgs
|
|
|
|
pythonImportsCheck = [ "langgraph.checkpoint" ];
|
|
|
|
nativeCheckInputs = [
|
|
dataclasses-json
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# AssertionError
|
|
"test_serde_jsonplus"
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = langgraph-sdk.updateScript;
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://github.com/langchain-ai/langgraph/releases/tag/checkpoint==${version}";
|
|
description = "Library with base interfaces for LangGraph checkpoint savers";
|
|
homepage = "https://github.com/langchain-ai/langgraph/tree/main/libs/checkpoint";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
drupol
|
|
sarahec
|
|
];
|
|
};
|
|
}
|