File python-zigpy.spec of Package python-zigpy
#
# spec file for package python-attrs
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with test
Name: python-zigpy
Version: 0.27.0
Release: 0
Summary: Library implementing a ZigBee stack
License: GPLv3+
Group: Development/Languages/Python
Url: https://github.com/zigpy/zigpy
Source: zigpy-%{version}.tar.xz
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module attrs}
BuildRequires: %{python_module aiohttp}
BuildRequires: %{python_module aiosqlite >= 0.16.0}
BuildRequires: %{python_module async_timeout}
BuildRequires: %{python_module crccheck}
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module async-timeout}
BuildRequires: %{python_module freezegun}
BuildRequires: %{python_module voluptuous}
BuildRequires: %{python_module pyserial-asyncio}
BuildRequires: %{python_module typing_extensions}
BuildRequires: %{python_module pytest}
Requires: python-attrs
Requires: python-aiohttp
Requires: python-aiosqlite >= 0.20.0
Requires: python-async_timeout
Requires: python-crccheck
Requires: python-cryptography
Requires: python-voluptuous
Requires: python-jsonschema
Requires: python-typing_extensions
Requires: python-frozendict
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
zigpy is Zigbee protocol stack integration project to implement
the Zigbee Home Automation standard as a Python 3 library.
%prep
%setup -q -n zigpy-%{version}
sed -i -e 's,^dynamic = .*,version = "%version",' pyproject.toml
%build
%python_build
%install
%python_install
rm -rf %{buildroot}/usr/lib/python*/site-packages/tools
%fdupes %{buildroot}%{_prefix}
%check
# fixtures are not part of shippment
#pytest
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/zigpy*
%changelog