File python-pysmlight.spec-0.2.11 of Package python-pysmlight
#
# spec file for package python-pysmlight
#
# Copyright (c) 2025 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/
#
Name: python-pysmlight
Version: 0.2.11
Release: 0
Summary: A library implementing API control of the SMLIGHT SLZB-06 LAN Coordinators
License: Apache-2.0
URL: https://github.com/smlight-workspace/pysmlight
Source: https://files.pythonhosted.org/packages/source/p/pysmlight/pysmlight-%{version}.tar.gz
%define skip_python311 1
BuildRequires: python-rpm-macros
BuildRequires: %{python_module hatch-vcs}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
# SECTION test requirements
BuildRequires: %{python_module aiohttp >= 3.9.3}
BuildRequires: %{python_module aiohttp-sse-client2 >= 0.3.0}
BuildRequires: %{python_module awesomeversion >= 24.6.0}
BuildRequires: %{python_module mashumaro >= 3.10}
# /SECTION
BuildRequires: fdupes
Requires: python-aiohttp >= 3.9.3
Requires: python-aiohttp-sse-client2 >= 0.3.0
Requires: python-awesomeversion >= 24.6.0
Requires: python-mashumaro >= 3.10
BuildArch: noarch
%python_subpackages
%description
# PySMLIGHT - SLZB-06x
A python library for controlling SMLIGHT SLZB-06 network coordinators
%prep
%autosetup -p1 -n pysmlight-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/pysmlight
%{python_sitelib}/pysmlight-%{version}.dist-info
%changelog