diff --git a/python-psutil.spec b/python-psutil.spec index 9876d62..31985db 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -69,10 +69,14 @@ done %install %py3_install +# Ignore tests when building with flatpak-module-tools to avoid build failures +# when building inside VMs or containers. Flatpaks would usually build this package +# as dependency from stable and already tested branches. +%if ! 0%{?flatpak} %check make test CI_TESTING=1 PYTHON=%{__python3} PYTHONPATH=%{buildroot}/%{python3_sitearch} - +%endif %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE