https://bugzilla.redhat.com/show_bug.cgi?id=2140076
--- Comment #4 from Sandro gui1ty@penguinpee.nl --- (In reply to Sandro from comment #3)
Issues:
One minor nitpick: Since you have tests conditionalized, I would suggest the following in %check:
%if %{with tests} %{pytest} %else %pyproject_import_test %endif
Sorry the correct macro is %pyproject_check_import