File python-langchain-text-splitters.spec of Package python-langchain-text-splitters
#
# spec file for package python-langchain-text-splitters
#
# 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-langchain-text-splitters
Version: 0.3.8
Release: 0
Summary: LangChain text splitting utilities
License: MIT
URL: https://python.langchain.com
Source: https://files.pythonhosted.org/packages/source/l/langchain-text-splitters/langchain_text_splitters-%{version}.tar.gz
# PATCH-FIX-UPSTREAM mentioned in https://github.com/langchain-ai/langchain/issues/7100 (auto-closed)
Patch: pytest-args.patch
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pdm-backend}
BuildRequires: %{python_module pip}
# SECTION test requirements
BuildRequires: %{python_module freezegun}
BuildRequires: %{python_module langchain-core >= 0.3.51}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-mock}
# /SECTION
BuildRequires: fdupes
Requires: python-langchain-core >= 0.3.51
BuildArch: noarch
%python_subpackages
%description
LangChain Text Splitters contains utilities for splitting into chunks a wide variety of text documents.
For full documentation see the [API reference](https://python.langchain.com/api_reference/text_splitters/index.html)
and the [Text Splitters](https://python.langchain.com/docs/modules/data_connection/document_transformers/) module in the main docs.
%prep
%autosetup -p1 -n langchain_text_splitters-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest tests/unit_tests
%files %{python_files}
%{python_sitelib}/langchain_text_splitters
%{python_sitelib}/langchain_text_splitters-%{version}.dist-info
%changelog