python-websockets/python-websockets.spec
Kseniia Nivnia f5847521bc
Add patch to remove shell=True
Resolves: RHEL-103750
Signed-off-by: Kseniia Nivnia <knivnia@redhat.com>
2025-07-17 13:28:37 +01:00

57 lines
1.3 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

%global pypi_name websockets
Name: python-%{pypi_name}
Version: 14.2
Release: %autorelease
Summary: Implementation of the WebSocket Protocol for Python
License: BSD-3-Clause
URL: https://github.com/aaugustin/websockets
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
# remove shell=True from experiments/compression/corpus.py
Patch0: remove-shell-true.patch
BuildRequires: gcc
%global _description %{expand:
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 Pythons 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}
BuildRequires: python3-devel
%description -n python3-%{pypi_name} %{_description}
%prep
%autosetup -n %{pypi_name}-%{version} -p1
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files websockets
%check
%pyproject_check_import
%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.rst
%changelog
%autochangelog