File python-channels.spec of Package python-channels
Name: python-channels
Version: 4.3.1
Release: 1%{?dist}
Summary: Developer-friendly asynchrony for Django
License: BSD-3-Clause
URL: https://github.com/django/channels
Source: %{url}/archive/%{version}/channels-%{version}.tar.gz
# Relax some version requirements
Patch: python-channels-fix_deps.patch
Patch: python-channels-fix_excludes.patch
BuildArch: noarch
BuildRequires: python3-devel
%global _description %{expand:
Channels augments Django to bring WebSocket, long-poll HTTP,
task offloading and other async support to your code,
using familiar Django design patterns and a flexible underlying
framework that lets you not only customize behaviours but also
write support for your own protocols and needs.}
%description %_description
%package -n python3-channels
Summary: %{summary}
%description -n python3-channels %_description
%pyproject_extras_subpkg -n python3-channels daphne
%prep
%autosetup -p1 -n channels-%{version}
%generate_buildrequires
%pyproject_buildrequires -x daphne
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files channels
%files -n python3-channels -f %{pyproject_files}
%license LICENSE
%doc README.rst