File python-aioruuvigateway.spec of Package python-aioruuvigateway

#
# spec file for package python-acme
#
# Copyright (c) 2020 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 libname aioruuvigateway
Name:           python-%{libname}
Version:        0.1.0
Release:        0
Summary:        An asyncio-native library for requesting data from a Ruuvi Gateway
License:        MIT
URL:            https://github.com/home-assistant/frontend
Source:         https://pypi.python.org/packages/source/a/%{libname}/%{libname}-%{version}.tar.gz
BuildRequires:  %{python_module pytest-runner}
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module wheel}
BuildRequires:  %{python_module hatchling}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildArch:      noarch
Requires:       python-aiohttp

%python_subpackages

%description
Ensure you have set up bearer token authentication in your Ruuvi Gateway (and that you know the token).


%prep
%setup -q -n %{libname}-%{version}

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

%files %{python_files}
%license LICENSE.txt
%doc README.md
%{python_sitelib}/%{libname}
%{python_sitelib}/%{libname}-%{version}*-info
%pycache_only %{python_sitelib}/%{libname}/__pycache__

%changelog
openSUSE Build Service is sponsored by