-# TODO: examine test_thread.py failures and remove --ignore from py.test invocations
#
# Conditional build:
%bcond_without python2 # CPython 2.x module
Summary: Foreign Function Interface for Python 2 calling C code
Summary(pl.UTF-8): Interfejs funkcji obcych (FFI) dla Pythona 2 wywołującego kod w C
Name: python-cffi
-Version: 1.11.5
+Version: 1.14.4
Release: 2
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/cffi/
Source0: https://files.pythonhosted.org/packages/source/c/cffi/cffi-%{version}.tar.gz
-# Source0-md5: ac8492f4ad952360737413e82d661908
-Patch0: %{name}-tests.patch
+# Source0-md5: ad3d8537b1516bad6bcdc36c458788be
URL: http://cffi.readthedocs.org/
BuildRequires: libffi-devel >= 3
BuildRequires: pkgconfig
%prep
%setup -q -n cffi-%{version}
-%patch0 -p1
%build
%if %{with python2}
%py_build
%if %{with tests}
-PYTHONPATH=$(echo build-2/lib.linux-*) \
-py.test-2 --ignore=testing/embedding/test_thread.py c testing
+PYTHONPATH=$(pwd):$(echo $(pwd)/build-2/lib.linux-*) \
+py.test-2 c testing
%endif
%endif
%py3_build
%if %{with tests}
-PYTHONPATH=$(echo build-3/lib.linux-*) \
-py.test-3 --ignore=testing/embedding/test_thread.py c testing
+PYTHONPATH=$(pwd):$(echo $(pwd)/build-3/lib.linux-*) \
+py.test-3 c testing
%endif
%endif