2017-09-08 20:35:22 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-websockets
|
|
|
|
#
|
2024-01-24 17:30:35 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-09-08 20:35:22 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-09-24 09:35:33 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-06-27 13:03:33 +02:00
|
|
|
#
|
2017-09-08 20:35:22 +02:00
|
|
|
|
|
|
|
|
2023-04-21 15:28:15 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2017-09-08 20:35:22 +02:00
|
|
|
Name: python-websockets
|
2023-12-06 10:19:34 +01:00
|
|
|
Version: 12.0
|
2017-09-08 20:35:22 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: An implementation of the WebSocket Protocol (RFC 6455)
|
2018-06-27 13:03:33 +02:00
|
|
|
License: BSD-3-Clause
|
2017-09-08 20:35:22 +02:00
|
|
|
Group: Development/Languages/Python
|
2018-08-29 13:42:56 +02:00
|
|
|
URL: https://github.com/aaugustin/websockets
|
2019-04-16 13:12:33 +02:00
|
|
|
Source: https://github.com/aaugustin/websockets/archive/%{version}.tar.gz
|
2023-12-06 10:19:34 +01:00
|
|
|
BuildRequires: %{python_module devel >= 3.8}
|
2021-08-10 09:52:37 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-09-08 20:35:22 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
2018-06-27 13:03:33 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2017-09-08 20:35:22 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
2021-08-10 09:52:37 +02:00
|
|
|
%autosetup -p1 -n websockets-%{version}
|
2017-09-08 20:35:22 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
|
|
|
%check
|
2017-10-09 02:58:40 +02:00
|
|
|
# Test execution speed depends on BS load and architecture, relax
|
2021-08-11 11:19:36 +02:00
|
|
|
export WEBSOCKETS_TESTS_TIMEOUT_FACTOR=10
|
2023-05-24 13:13:16 +02:00
|
|
|
# Disable flaky tests gh#python-websockets/websockets#1322
|
2024-01-24 17:30:35 +01:00
|
|
|
donttest="test_close_waits_for_close_frame"
|
|
|
|
# Disable broken tests with openssl 3.2 and python < 3.11
|
|
|
|
donttest+=" or test_reject_invalid_server_certificate"
|
|
|
|
%pytest_arch -v -k "not ($donttest)" tests
|
2017-09-08 20:35:22 +02:00
|
|
|
|
|
|
|
%files %{python_files}
|
2018-08-29 13:42:56 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
2017-09-08 20:35:22 +02:00
|
|
|
%{python_sitearch}/websockets
|
|
|
|
%{python_sitearch}/websockets-%{version}-py*.egg-info
|
|
|
|
|
|
|
|
%changelog
|