File python-pycrdt-websocket.spec of Package failed_python-pycrdt-websocket
#
# spec file for package python-pycrdt-websocket
#
# Copyright (c) 2023 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-pycrdt-websocket
Version: 0.12.6
Release: 0
Summary: WebSocket connector for pycrdt
License: MIT
URL: https://github.com/jupyter-server/pycrdt-websocket
Source: https://files.pythonhosted.org/packages/source/p/pycrdt_websocket/pycrdt_websocket-%{version}.tar.gz
# for testing, not installed; create through `npm install ws y-websocket && tar cJf node_modules.tar.xz node_modules package.json`
Source10: node_modules.tar.xz
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-aiosqlite >= 0.18.0
Requires: python-anyio >= 3.6.2
Requires: python-pycrdt >= 0.8.1
Provides: python-pycrdt_websocket = %{version}-%{release}
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module aiosqlite >= 0.18.0}
BuildRequires: %{python_module anyio >= 3.6.2}
BuildRequires: %{python_module pycrdt >= 0.8.1}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module uvicorn}
BuildRequires: %{python_module websockets >= 10.0}
BuildRequires: nodejs
# /SECTION
%python_subpackages
%description
Pycrdt-websocket is a Python library for building WebSocket servers
and clients that connect and synchronize shared documents.
It can be used to create collaborative web applications.
%prep
%autosetup -p1 -n pycrdt_websocket-%{version} -a10
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%{python_sitelib}/pycrdt_websocket
%{python_sitelib}/pycrdt_websocket-%{version}.dist-info
%changelog