BuildRequires: po4a >= 0.51
%if %{with tests}
BuildRequires: python3-cairosvg
+BuildRequires: python3-pytest
+# TODO
+#BuildRequires: python3-pytest-image-diff
%endif
BuildRequires: python3-devel >= 1:3.6
BuildRequires: python3-pybind11
%prep
%setup -q -a 1 -a 3 -a 4 %{?with_packages3D:-a 5} -a 6
+%ifarch x32
+# fails on x32
+%{__sed} -i -e '/test_coroutine.cpp/d' qa/tests/common/CMakeLists.txt
+%endif
+
%build
build_library() {
%{__make} VERBOSE=1
%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
%{__make} test ARGS=--output-on-failure
%endif