File python-mautrix.spec of Package python-mautrix

#
# Copyright (c) 2021 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/
#

%define mod_name mautrix
%define skip_python2 1
%define skip_python36 1

Name:           python-mautrix
Version:        0.16.3
Release:        0
License:        BSD-3-Clause
Summary:        A Python 3.8+ asyncio Matrix framework
Url:            https://github.com/mautrix/python
Source:         https://files.pythonhosted.org/packages/0b/85/81775660ce1c3a9037d92d08a85bdae17c46b044f3bb48087799af59cf11/mautrix-0.16.3.tar.gz
BuildRequires:  %{python_module devel >= 3.8}
BuildRequires:  %{python_module setuptools}
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module aiohttp >= 3}
BuildRequires:  %{python_module attrs >= 18.1.0}
BuildRequires:  %{python_module yarl >= 1.5}
BuildRequires:  %{python_module typing_extensions}
BuildRequires:  %{python_module python-magic >= 0.4.15}
Requires:       (python-aiohttp >= 3 with python-aiohttp < 4)
Requires:       python-attrs >= 18.1.0
Requires:       (python-yarl >= 1.5 with python-yarl < 2)
Requires:       (python-python-magic >= 0.4.15 with python-python-magic < 0.5)
Requires:       python-typing_extensions
%python_subpackages

%description
A Python 3.8+ asyncio Matrix framework.

%prep
%autosetup -p1 -n %{mod_name}-%{version}

%build
%python_build

%install
%python_install

%files %{python_files}
%doc README* PKG-INFO
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by