Files
meta-openembedded/meta-python/recipes-devtools/python/python3-bleak_3.1.0.bb
T
Khem Raj b0758e6b7d python3-bleak: upgrade 3.0.2 -> 3.1.0
Refresh the uv_build bound patch for the new <0.12.0 cap.

Changes:
- New: BleakAdapter.get_connected_devices() to list already-connected
  devices without scanning; new Android backend for BeeWare/Briefcase
  apps (needs Python 3.13+).
- Minimum dbus-fast raised to 4.0.0 on Linux.
- BlueZ: detects D-Bus connection loss, recovers from InProgress on
  StopDiscovery, fixes disconnect() leaks, device-removed matching
  on adapters like hci10, and empty AcquireNotify payloads.
- CoreBluetooth: fixed memory leaks, address data leak with
  use_bdaddr, start_notify() ValueError after reconnect.
- WinRT: GATT I/O raises BleakError on disconnect; fixed crash after
  event loop closed.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-11-17 12:58:51 -08:00

40 lines
1.2 KiB
BlitzBasic

SUMMARY = "Bleak is a GATT client software, capable of connecting to BLE devices acting as GATT servers."
HOMEPAGE = "https://github.com/hbldh/bleak"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=bcbc2069a86cba1b5e47253679f66ed7"
# The PyPI sdist ships no tests/ directory at all, so ptest has nothing to
# run from it (pytest exits 5, "no tests collected"). Fetch the matching
# git tag instead, which does include tests/, mirroring python3-pydantic.
SRCREV = "3075468a7c511b2b771a6aa50a896120f2a3a3de"
PV .= "+git"
SRC_URI = "git://github.com/hbldh/bleak;protocol=https;branch=develop \
file://run-ptest \
file://0001-bleak-Support-newer-uv_build-versions.patch \
"
inherit python_uv_build ptest-python-pytest
RDEPENDS:${PN}-ptest += " \
python3-asyncio \
python3-pytest-asyncio \
python3-pytest-cov \
python3-bumble \
"
RDEPENDS:${PN} += " \
python3-core (>3.8) \
python3-dbus-fast \
python3-xml \
"
do_install_ptest:append() {
# tests/test_adapter_deprecation.py has plain "async def" tests with no
# @pytest.mark.asyncio marker; they rely on upstream's pyproject.toml
# setting asyncio_mode=auto, which isn't shipped into the ptest package.
cat > ${D}${PTEST_PATH}/pytest.ini <<EOF
[pytest]
asyncio_mode = auto
EOF
}