File python-datadiff.spec of Package python-datadiff

# spec file for package python-datadiff
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2019, Martin Hauke <>
# 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

Name:           python-datadiff
Version:        2.2.0
Release:        0
Summary:        DataDiff is a library to provide human-readable diffs of python data structures
License:        Apache-2.0
Source:         datadiff-%{version}.tar.xz
Patch0:         python-datadiff-no-six.patch
Patch1:         support-python312.patch
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildArch:      noarch
# SECTION test requirements
BuildRequires:  %{python_module pytest}


DataDiff is a library to provide human-readable diffs of python data structures.
It can handle sequence types (lists, tuples, etc), sets, and dictionaries.
Dictionaries and sequences will be diffed recursively, when applicable.
It has special-case handling for multi-line strings, showing them as a typical unified diff.
Drop-in replacements for some nose assertions are available.  If the assertion fails,
a nice data diff is shown, letting you easily pinpoint the root difference.

%autosetup -p1 -n datadiff-%{version}


%python_expand %fdupes %{buildroot}%{$python_sitelib}


%files %{python_files}
%license LICENSE

openSUSE Build Service is sponsored by