Files
python-bleak/python-bleak.spec
Markus Reckwerth 25afd7f8db - Update to version 1.1.1:
* bluezdbus: improve D-Bus connection error handling in manager
  * backends/bluez: don't bind lambda to loop variable
  * backends/p4android/client: initialize __callbacks to None
  * backends/winrt/client: call disconnect callback on disconnect
  * Pythonista iOS app backend support
  * bleak: add BleakClient.name property
  * backends: p4android: fix connect()
  * examples/service_explorer: pass objects directly instead of handles
  * Update service_explorer.py
  * github: add -v option to pytest
  * backends: bluezdbus: restore deprecated imports
  * backends/device: restore **kwargs in BLEDevice constructor
  * bluez: client: fix a few static typing complaints
  * "tomli" was included in Python 3.11 as "tomllib" (#1782)
  * bleak: use backend-specific key for seen_devices
  * backends: bluez: handle address change after pairing
  * bleak: use longer timeout when pairing during connect
  * build(deps-dev): bump urllib3 from 1.26.19 to 2.5.0
  * backends: winrt: scanner: enable extended advertising
  * build(deps-dev): bump requests from 2.32.0 to 2.32.4
  * github: add stale bot messages
  * backends: winrt: deprecate protection_level
  * backends: winrt: try highest pairing level first
  * backends: winrt: fix pair debug message with wrong value
  * backends: winrt: improve pairing error message
  * backends: winrt: swap order of is_paired and can_pair check
  * backends: winrt: move protection_level out of parameters
  * backends/characteristic: fix type hint
  * typings: fix a couple mypy complaints

OBS-URL: https://build.opensuse.org/package/show/hardware/python-bleak?expand=0&rev=5
2025-12-18 20:59:07 +00:00

92 lines
2.6 KiB
RPMSpec

#
# spec file for package python-bleak
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%define pname bleak
%{?sle15_python_module_pythons}
Name: python-%{pname}%{psuffix}
Version: 1.1.1
Release: 0
Summary: Python GATT client
License: MIT
URL: https://github.com/hbldh/bleak
Source0: python-%{pname}-%{version}.tar.xz
BuildArch: noarch
BuildRequires: %{python_module base >= 3.10}
BuildRequires: %{python_module dbus_fast >= 1.83.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
%if %python_version_nodots < 311
BuildRequires: %{python_module async_timeout >= 3.0.0}
%endif
%if %{with test}
BuildRequires: %{python_module bleak = %{version}}
BuildRequires: %{python_module pytest >= 8.2.1}
BuildRequires: %{python_module pytest-asyncio >= 0.23.7}
BuildRequires: %{python_module pytest-cov >= 3.0.0}
%endif
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-dbus_fast >= 1.83.0
%if %python_version_nodots < 311
Requires: python-async_timeout >= 3.0.0
%endif
%if %python_version_nodots < 312
Requires: python-typing_extensions >= 4.7.0
%endif
%python_subpackages
%description
Bleak is an acronym for Bluetooth Low Energy platform Agnostic Klient.
Bleak is a GATT client software, capable of connecting to BLE devices acting as GATT servers. It is designed to provide a asynchronous, cross-platform Python API to connect and communicate with e.g. sensors.
%prep
%setup -q -n python-%{pname}-%{version}
%if !%{with test}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
%pytest
%endif
%if !%{with test}
%files %python_files
%defattr(-,root,root,-)
%{python_sitelib}/%{pname}*
%doc AUTHORS.rst CHANGELOG.rst CONTRIBUTING.rst README.rst
%license LICENSE
%endif
%changelog