14
0

Accepting request 507214 from home:alois:branches:devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/507214
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=11
This commit is contained in:
2017-06-30 07:30:34 +00:00
committed by Git OBS Bridge
parent 6dabaefcb1
commit 644c4fc637
4 changed files with 29 additions and 14 deletions

View File

@@ -16,21 +16,32 @@
#
%bcond_with test
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%if 0%{?suse_version} > 1320
%define oldpython python2
%else
%define oldpython python
%endif
%bcond_with test
Name: python-hypothesis
Version: 3.6.1
Version: 3.11.6
Release: 0
Summary: A library for property based testing
License: MPL-2.0
Group: Development/Languages/Python
Url: https://github.com/DRMacIver/hypothesis
Url: https://github.com/HypothesisWorks/hypothesis-python
Source: https://files.pythonhosted.org/packages/source/h/hypothesis/hypothesis-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-enum34
BuildRequires: python-rpm-macros
Recommends: python-Django >= 1.7
Recommends: python-Faker >= 0.7.0
Recommends: python-numpy >= 1.9.0
Recommends: python-pytest >= 2.7.0
Recommends: python-pytz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module Django >= 1.7}
BuildRequires: %{python_module Faker >= 0.7.0}
@@ -41,13 +52,6 @@ BuildRequires: %{python_module pytz}
%ifpython2
Requires: %{oldpython}-enum34
%endif
Recommends: python-Django >= 1.7
Recommends: python-Faker >= 0.7.0
Recommends: python-numpy >= 1.9.0
Recommends: python-pytest >= 2.7.0
Recommends: python-pytz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
@@ -67,12 +71,15 @@ work on Jython or on Python 3.0 through 3.2.
%prep
%setup -q -n hypothesis-%{version}
# remove shebang
sed -e '1d' -i src/hypothesis/tools/mergedbs.py
%build
%python_build
%install
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%if %{with test}
%check