File python-bleak-esphome.spec of Package python-bleak-esphome
#
# spec file for package python-pybotvac
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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() python-%{**} python3-%{**}}
%define skip_python2 1
%define skip_python38 1
%define skip_python39 1
%define skip_python310 1
Name: python-bleak-esphome
Version: 3.6.0
Release: 0
Summary: An Esphome backend for Bleak Clients
License: MIT
Group: Development/Languages/Python
Url: https://github.com/bluetooth-devices/bleak-esphome
Source: https://pypi.python.org/packages/source/b/bleak_esphome/bleak_esphome-%version.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module dbus-fast}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-aioesphomeapi >= 43.14.0
Requires: python-bluetooth-data-tools >= 1.18.0
Requires: python-bleak >= 1
Requires: python-bleak-retry-connector >= 3.8.0
Requires: python-dbus-fast >= 1.4.0
Requires: python-habluetooth >= 5.7.0
Requires: python-lru-dict >= 1.2.0
%python_subpackages
%description
An Esphome backend for Bleak Clients
%prep
%setup -q -n bleak_esphome-%version
# drop invalid group section definition
sed -i -e '/tool.poetry.group.dev.dependencies/d' pyproject.toml
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitearch}/*
%changelog