Summary: Python serial port access library Name: pyserial Version: 3.5 Release: 15%{?dist} Source0: %pypi_source License: BSD-3-Clause URL: http://pypi.python.org/pypi/pyserial-labgrid BuildRequires: python3-devel BuildRequires: python3-setuptools BuildArch: noarch %global _description\ This module encapsulates the access for the serial port. It provides backends\ for standard Python running on Windows, Linux, BSD (possibly any POSIX\ compliant system) and Jython. The module named "serial" automatically selects\ the appropriate backend. %description %_description %package -n python3-pyserial Summary: %{summary} Conflicts: python2-pyserial < 3.4-6 %description -n python3-pyserial %_description %prep export UNZIP="-aa" %setup -q # Python 3.13+ has removed unittest.findTestCases() # Reported upstream: https://github.com/pyserial/pyserial/issues/754 sed -i 's/unittest.findTestCases(module)/unittest.TestLoader().loadTestsFromModule(module)/' test/run_all_tests.py %build %py3_build %install %py3_install %check PYTHONPATH=%{buildroot}/%{python3_sitelib} %{python3} test/run_all_tests.py %files -n python3-pyserial %doc LICENSE.txt CHANGES.rst README.rst examples %{python3_sitelib}/serial %{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info %{_bindir}/pyserial-miniterm %{_bindir}/pyserial-ports %changelog %autochangelog