15
0

- Add patch switch-to-pytest.patch:

* Stop using nose imports, use pytest instead.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-datadiff?expand=0&rev=3
This commit is contained in:
2021-09-16 05:43:40 +00:00
committed by Git OBS Bridge
parent e42c87ba63
commit 8fc05c1531
3 changed files with 364 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
#
# spec file for package python-datadiff
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
@@ -22,18 +23,17 @@ Version: 2.2.0
Release: 0
Summary: DataDiff is a library to provide human-readable diffs of python data structures
License: Apache-2.0
Group: Development/Languages/Python
URL: https://sourceforge.net/projects/datadiff/
#Source: https://files.pythonhosted.org/packages/source/d/datadiff/datadiff-%%{version}.tar.gz
#Git-Clone: https://git.code.sf.net/p/datadiff/code
Source: datadiff-%{version}.tar.xz
Source1: https://www.apache.org/licenses/LICENSE-2.0.txt
Patch0: switch-to-pytest.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six}
# /SECTION
@@ -49,6 +49,7 @@ a nice data diff is shown, letting you easily pinpoint the root difference.
%prep
%setup -q -n datadiff-%{version}
%autopatch -p1
cp %{SOURCE1} .
%build