File esphome.spec of Package esphome

#
# spec file for package python-sybil
#
# Copyright (c) 2017 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/
#


%define pythons python313

Name:           esphome
Version:        0
Release:        0
Summary:        ESP8266/ESP32 configuration for home automation
License:        MIT,GPLv3
Group:          Development/Languages/Python
Url:            https://esphome.io/
Source:         esphome-%{version}.tar.xz
BuildRequires:  fdupes
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
Requires:  %{pythons}-pyserial
Requires:  %{pythons}-platformio
Requires:  %{pythons}-puremagic
Requires:  %{pythons}-voluptuous
Recommends:  %{pythons}-voluptuous >= 0.14.2
Recommends:  %{pythons}-PyYAML >= 6.0.1
Recommends:  %{pythons}-paho-mqtt
Recommends:  %{pythons}-colorama
Recommends:  %{pythons}-freetype-py
Recommends:  %{pythons}-glyphsets >= 1.0.0
Recommends:  %{pythons}-cryptography >= 42.0.2
Recommends:  %{pythons}-icmplib
Recommends:  %{pythons}-requests
Recommends:  %{pythons}-tornado
Recommends:  %{pythons}-tzlocal
Recommends:  %{pythons}-tzdata
Recommends:  %{pythons}-esptool
Recommends:  %{pythons}-click
Recommends:  %{pythons}-argcomplete
Recommends:  %{pythons}-zeroconf
Requires(pre):  /usr/sbin/usermod

BuildArch:      noarch

%description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.

%prep
%autosetup

%build
%pyproject_wheel

%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

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

openSUSE Build Service is sponsored by