File python-aiohomeconnect.spec of Package python-aiohomeconnect
#
# spec file for package python-aiohomeconnect
#
# Copyright (c) 2022 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() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-aiohomeconnect
Version: 0.23.0
Release: 0
Summary: An asyncio client for the Home Connect API
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/MartinHjelmare/aiohomeconnect
Source: https://pypi.python.org/packages/source/a/aiohomeconnect/aiohomeconnect-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
Requires: python-httpx >= 0.28.0
Requires: python-httpx-sse >= 0.4.0
Requires: python-mashumaro >= 3.13.1
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
An asyncio client for the Home Connect API
%prep
%setup -q -n aiohomeconnect-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/aiohomeconnect
%post
%python_install_alternative aiohomeconnect
%postun
%python_uninstall_alternative aiohomeconnect
%files %{python_files}
%license LICENSE
%doc README.md
%python_alternative %{_bindir}/aiohomeconnect
%{python_sitelib}/aiohomeconnect*
%changelog