Update python-psutil.spec

Skip checks if running flatpak build.
This commit is contained in:
Jay W 2022-02-07 22:25:37 +00:00 committed by devel
parent 46402c3c18
commit a14a3d77e9
1 changed files with 5 additions and 1 deletions

View File

@ -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