File python-homeassistant.spec of Package python-homeassistant
#
# spec file for package python-homeassistant
#
# Copyright (c) 2018 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 skip_python2 1
%{?!python_module:%define python_module() python3-%{**}}
Name: python-homeassistant
Version: 0.63.3
Release: 0
Summary: Home automation platform running on Python 3
License: Apache-2.0
Group: Productivity/Networking/Other
Url: https://home-assistant.io
Source: https://files.pythonhosted.org/packages/source/h/homeassistant/homeassistant-%{version}.tar.gz
# PATCH-FIX-OPENSUSE homeassistant-fix_requirements.patch
Patch0: homeassistant-fix_requirements.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Jinja2 >= 2.9.6
Requires: python-PyYAML >= 3.11
Requires: python-aiohttp >= 2.3.10
Requires: python-astral >= 1.5
Requires: python-async-timeout >= 2.0.0
Requires: python-attrs >= 17.4.0
Requires: python-certifi >= 2017.4.17
Requires: python-chardet >= 3.0.4
Requires: python-pytz >= 2017.02
Requires: python-requests >= 2.18.4
Requires: python-voluptuous >= 0.10.5
Requires: python-yarl >= 1.1.0
BuildArch: noarch
%if 0%{?suse_version} <= 1320
Requires: python-typing >= 3
%endif
%python_subpackages
%description
Home Assistant is a home automation platform running on Python 3. It is
able to track and control all devices at home and offer a platform for
automating control.
%prep
%setup -q -n homeassistant-%{version}
%patch0 -p1
rm -rf homeassistant.egg-info
find -name .DS_Store -delete
%build
%python_build
%install
%python_install
%python_expand %fdupes -s %{buildroot}/%{$python_sitelib}
%files %{python_files}
%doc LICENSE.md README.rst
%python3_only %{_bindir}/hass
%{python_sitelib}/homeassistant
%{python_sitelib}/homeassistant-%{version}-py%{python3_version}.egg-info
%changelog