%global pypi_name websockets Name: python-%{pypi_name} Version: 5.0.1 Release: 3%{?dist} Summary: An implementation of the WebSocket Protocol for python with asyncio License: BSD URL: https://pypi.python.org/pypi/websockets Source0: %{pypi_source} # Not reliable on koji on some arch (eg arm and ppc) #Patch0: remove-tests-with-timeouts.patch # Backports from master. support for py3.7 Patch0001: 0001-Add-support-for-Python-3.7.patch Patch0002: 0002-Replace-conditional-errors-with-version-checks.patch Patch0003: 0003-Support-yield-from-connect-serve-on-Python-3.7.patch BuildRequires: gcc %global _description \ websockets is a library for developing WebSocket servers and clients in\ Python. It implements RFC 6455 with a focus on correctness and simplicity. It\ passes the Autobahn Testsuite.\ \ Built on top of Python’s asynchronous I/O support introduced in PEP 3156, it\ provides an API based on coroutines, making it easy to write highly concurrent\ applications. %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} BuildRequires: python3-devel >= 3.5 BuildRequires: python3-setuptools %description -n python3-%{pypi_name} %{_description} %prep %autosetup -n %{pypi_name}-%{version} -p1 # Remove upstream's egg-info rm -vrf %{pypi_name}.egg-info %build %py3_build %install %py3_install # Remove installed C file rm -vf %{buildroot}%{python3_sitearch}/%{pypi_name}/speedups.c %check WEBSOCKETS_TESTS_TIMEOUT_FACTOR=20 %{__python3} setup.py test %files -n python3-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ %{python3_sitearch}/%{pypi_name}/ %changelog * Sat Jul 14 2018 Fedora Release Engineering - 5.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 5.0.1-2 - Rebuilt for Python 3.7 * Sat Jun 02 2018 Julien Enselme - 5.0.1-1 - Update to 5.0.1 * Fri Feb 09 2018 Fedora Release Engineering - 4.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Nov 06 2017 Julien Enselme - 4.0.1-1 - Update to 4.0.1 * Mon Aug 21 2017 Julien Enselme - 3.4-2 - Remove tests with timeouts * Mon Aug 21 2017 Julien Enselme - 3.4-1 - Update to 3.4 * Thu Jul 27 2017 Fedora Release Engineering - 3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Apr 05 2017 Julien Enselme - 3.3-1 - Update to 3.3 * Sat Feb 11 2017 Fedora Release Engineering - 3.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 3.2-3 - Rebuild for Python 3.6 * Sun Sep 18 2016 Julien Enselme - 3.2-2 - Correct tests on Python 3.5.2 * Sun Sep 18 2016 Julien Enselme - 3.2-1 - Update to 3.2 * Tue Jul 19 2016 Fedora Release Engineering - 3.1-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Tue Jun 21 2016 Julien Enselme - 3.1-1 - Update to 3.1 * Sun Feb 14 2016 Julien Enselme - 3.0-1 - Update to 3.0 - Correct build on rawhide * Thu Feb 04 2016 Fedora Release Engineering - 2.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Nov 22 2015 Julien Enselme - 2.7-1 - Update to 2.7 * Thu Nov 12 2015 Kalev Lember - 2.6-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Wed Aug 26 2015 Julien Enselme - 2.6-1 - Initial package