File python-aioshelly.spec of Package python-aioshelly

#
# spec file for package python-aioshelly
#
# 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/
#


%{?!python_module:%define python_module() python3-%{**}}
#%%define skip_python39 1
Name:           python-aioshelly
Version:        13.0.0
Release:        0
Summary:        Asynchronous library to control Shelly devices
License:        Apache-2.0
URL:            https://github.com/home-assistant-libs/aioshelly
Source:         aioshelly-%version.tar.xz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
BuildRequires:  fdupes
Requires:       python-aiohttp >= 3.11.1
Requires:       python-bluetooth-data-tools >= 1.19.0
Requires:       python-habluetooth >= 2.1.0
Requires:       python-orjson >= 3.8.1
Requires:       python-yarl
BuildArch:      noarch
%python_subpackages

%description
Asynchronous library to control Shelly devices.

%prep
%setup -q -n aioshelly-%{version}
sed -i -e 's,^version = .*,version = "%version",' pyproject.toml

%build
%pyproject_wheel

%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests

%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by