[packages/libinput] BR: python3-pytest and disable pytest plugin autoloading

atler atler at pld-linux.org
Fri Aug 8 01:50:17 CEST 2025


commit f9431affc932fd646850336b98a497a55195ef64
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Aug 8 01:48:22 2025 +0200

    BR: python3-pytest and disable pytest plugin autoloading

 libinput.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/libinput.spec b/libinput.spec
index d053ee1..32710a1 100644
--- a/libinput.spec
+++ b/libinput.spec
@@ -29,6 +29,7 @@ BuildRequires:	meson >= 0.56.0
 BuildRequires:	mtdev-devel >= 1.1.0
 BuildRequires:	ninja >= 1.5
 BuildRequires:	pkgconfig
+%{?with_tests:BuildRequires:	python3-pytest}
 BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpmbuild(macros) >= 2.042
 BuildRequires:	sed >= 4.0
@@ -164,7 +165,10 @@ Dopełnianie parametrów w zsh dla polecenia libinput.
 
 %meson_build
 
-%{?with_tests:%meson_test}
+%if %{with tests}
+export PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+%meson_test
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libinput.git/commitdiff/f9431affc932fd646850336b98a497a55195ef64



More information about the pld-cvs-commit mailing list