Files
nixpkgs/pkgs/development/python-modules/langgraph-checkpoint/default.nix
T
2026-03-08 16:44:04 -07:00

82 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build system
hatchling,
# dependencies
langchain-core,
msgpack,
ormsgpack,
# testing
dataclasses-json,
numpy,
pandas,
pycryptodome,
pytest-asyncio,
pytest-mock,
pytestCheckHook,
redis,
# passthru
gitUpdater,
}:
buildPythonPackage (finalAttrs: {
pname = "langgraph-checkpoint";
version = "4.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
tag = "checkpoint==${finalAttrs.version}";
hash = "sha256-NJSmpVshj/x6ws+jFYXGarNKNztbk5OIIMA1neFOyIY=";
};
sourceRoot = "${finalAttrs.src.name}/libs/checkpoint";
build-system = [ hatchling ];
dependencies = [
langchain-core
ormsgpack
];
propagatedBuildInputs = [ msgpack ];
pythonImportsCheck = [ "langgraph.checkpoint" ];
nativeCheckInputs = [
dataclasses-json
numpy
pandas
pycryptodome
pytest-asyncio
pytest-mock
pytestCheckHook
redis
];
passthru = {
# python updater script sets the wrong tag
skipBulkUpdate = true;
updateScript = gitUpdater {
rev-prefix = "checkpoint==";
};
};
meta = {
changelog = "https://github.com/langchain-ai/langgraph/releases/tag/${finalAttrs.src.tag}";
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; [
sarahec
];
};
})