2018-10-11 10:09:54 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-PyHamcrest
|
|
|
|
#
|
2019-07-03 10:37:52 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2018-10-11 10:09:54 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-11 10:13:31 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2018-10-11 10:09:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-PyHamcrest
|
|
|
|
Version: 1.9.0
|
|
|
|
Release: 0
|
|
|
|
Summary: Hamcrest framework for matcher objects
|
2018-10-11 10:13:31 +02:00
|
|
|
License: BSD-3-Clause
|
2018-10-11 10:09:54 +02:00
|
|
|
Group: Development/Languages/Python
|
2018-10-11 10:13:31 +02:00
|
|
|
URL: https://github.com/hamcrest/PyHamcrest
|
2018-10-11 10:09:54 +02:00
|
|
|
# PyPi is missing tests
|
|
|
|
#Source: https://files.pythonhosted.org/packages/source/P/PyHamcrest/PyHamcrest-%%{version}.tar.gz
|
|
|
|
Source: https://github.com/hamcrest/PyHamcrest/archive/V%{version}.tar.gz
|
2018-10-17 09:53:44 +02:00
|
|
|
Patch0: 0001-Add-boolean-matchers.patch
|
2018-10-11 10:09:54 +02:00
|
|
|
BuildRequires: %{python_module hypothesis >= 1.11}
|
2018-10-11 10:13:31 +02:00
|
|
|
BuildRequires: %{python_module mock}
|
2019-11-04 16:46:02 +01:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-10-11 10:13:31 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module six >= 1.4}
|
2018-10-11 10:09:54 +02:00
|
|
|
BuildRequires: fdupes
|
2018-10-11 10:13:31 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-10-11 10:09:54 +02:00
|
|
|
Requires: python-six >= 1.4
|
2018-10-17 09:53:44 +02:00
|
|
|
Provides: python-hamcrest = %{version}
|
|
|
|
Obsoletes: python-hamcrest
|
2018-10-11 10:09:54 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Hamcrest framework for matcher objects.
|
2018-10-11 10:13:31 +02:00
|
|
|
PyHamcrest is a framework for writing matcher objects,
|
|
|
|
allowing you to declaratively define “match” rules.
|
2018-10-11 10:09:54 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n PyHamcrest-%{version}
|
2019-07-03 10:37:52 +02:00
|
|
|
%autopatch -p1
|
2019-07-19 12:23:07 +02:00
|
|
|
|
2019-07-03 10:37:52 +02:00
|
|
|
rm pytest.ini
|
2018-10-11 10:09:54 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/hamcrest
|
|
|
|
|
|
|
|
%check
|
2019-11-04 16:46:02 +01:00
|
|
|
# gh#hamcrest/PyHamcrest#123
|
|
|
|
rm -f tests/hamcrest_unit_test/core/is{_test,instanceof_test}.py
|
2019-07-03 10:37:52 +02:00
|
|
|
%pytest
|
2018-10-11 10:09:54 +02:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.rst
|
|
|
|
%{python_sitelib}/hamcrest
|
|
|
|
%{python_sitelib}/PyHamcrest-%{version}-py*.egg-info/
|
|
|
|
|
|
|
|
%changelog
|