File python-hass-nabucasa.spec of Package python-hass-nabucasa
#
# spec file for package python-hass-nabucasa
#
# 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 http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%define skip_python36 1
%define skip_python39 1
%define skip_python310 1
%define skip_python311 1
%define skip_python312 1
Name: python-hass-nabucasa
Version: 0.46.0
Release: 0
License: GPL-3.0
Summary: Home Assistant cloud integration by Nabu Casa, inc
Url: https://www.nabucasa.com/
Group: Development/Languages/Python
Source: hass-nabucasa-%{version}.tar.xz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
# SECTION test requirements
BuildRequires: %{python_module acme >= 1.31.0}
BuildRequires: %{python_module aiohttp >= 3.6.1}
BuildRequires: %{python_module atomicwrites-homeassistant >= 1.4.1}
BuildRequires: %{python_module attrs >= 19.3.0}
BuildRequires: %{python_module cryptography >= 2.8}
BuildRequires: %{python_module pycognito >= 2023.5.0}
BuildRequires: %{python_module pytz >= 2019.3}
BuildRequires: %{python_module snitun >= 0.36.2}
# /SECTION
BuildRequires: fdupes
Requires: python-acme >= 4.1.1
Requires: python-aiohttp >= 3.6.1
Requires: python-atomicwrites-homeassistant >= 1.4.1
Requires: python-attrs >= 19.3.0
Requires: python-cryptography >= 42.0.0
Requires: python-pycognito >= 2024.5.1
Requires: python-snitun >= 0.40.0
Requires: python-sentence_stream == 1.1.0
Requires: python-webrtc-models
BuildArch: noarch
%python_subpackages
%description
Home Assistant cloud integration component by Nabu Casa, inc.
%prep
%setup -q -n hass-nabucasa-%{version}
sed -i -e 's,^version = .*,version = "%version",' pyproject.toml
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%changelog