forked from pool/python-pyudev
syntactically correct and skip over tests we cannot run because
of missing /dev gh#pyudev/pyudev#404. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyudev?expand=0&rev=36
This commit is contained in:
@@ -25,14 +25,15 @@ License: LGPL-2.1-or-later
|
||||
Group: Development/Libraries/Python
|
||||
URL: http://pyudev.readthedocs.org/
|
||||
Source0: https://files.pythonhosted.org/packages/source/p/pyudev/pyudev-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM pytest_register_mark.patch bsc#[0-9]+ mcepl@suse.com
|
||||
# Add missing mark registration
|
||||
# PATCH-FIX-UPSTREAM pytest_register_mark.patch gh#pyudev/pyudev#404 mcepl@suse.com
|
||||
# Add missing mark registration and register and use another mark
|
||||
Patch0: pytest_register_mark.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: udev
|
||||
BuildRequires: pkgconfig(libudev)
|
||||
Requires: libudev1
|
||||
Requires: python-six
|
||||
@@ -70,8 +71,8 @@ sed -i -e "s|'sphinx.ext.intersphinx',\\?||" -e "s|'sphinxcontrib.issuetracker',
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# Test suite fails gh#pyudev/pyudev#404
|
||||
%pytest || true
|
||||
# We don't have real /dev in osc build chroot gh#pyudev/pyudev#404
|
||||
%pytest -k 'not real_udev'
|
||||
|
||||
%files %{python_files}
|
||||
%license COPYING
|
||||
|
Reference in New Issue
Block a user