File python-langgraph-checkpoint.spec of Package python-langgraph-checkpoint
#
# spec file for package python-langgraph-checkpoint
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-langgraph-checkpoint
Version: 2.1.1
Release: 0
Summary: Library with base interfaces for LangGraph checkpoint savers
License: FIXME-UNKNOWN
URL: https://www.github.com/langchain-ai/langgraph
Source: https://files.pythonhosted.org/packages/source/l/langgraph-checkpoint/langgraph_checkpoint-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
# SECTION test requirements
BuildRequires: %{python_module dataclasses-json}
BuildRequires: %{python_module langchain-core >= 0.2.38}
BuildRequires: %{python_module langchain-tests}
BuildRequires: %{python_module ormsgpack >= 1.10.0}
BuildRequires: %{python_module pandas}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-mock}
# /SECTION
BuildRequires: fdupes
Requires: python-langchain-core >= 0.2.38
Requires: python-ormsgpack >= 1.10.0
Provides: python-langgraph-cache = %{version}
Provides: python-langgraph-store = %{version}
BuildArch: noarch
%python_subpackages
%description
This library defines the base interface for LangGraph checkpointers. Checkpointers provide a persistence layer for LangGraph. They allow you to interact with and manage the graph's state. When you use a graph with a checkpointer, the checkpointer saves a _checkpoint_ of the graph state at every superstep, enabling several powerful capabilities like human-in-the-loop, "memory" between interactions and more.
%prep
%autosetup -p1 -n langgraph_checkpoint-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
%dir %{python_sitelib}/langgraph
%{python_sitelib}/langgraph/checkpoint
%{python_sitelib}/langgraph/cache
%{python_sitelib}/langgraph/store
%{python_sitelib}/langgraph_checkpoint-%{version}.dist-info
%changelog