chore(python): bump bleak dependency to 3.0.2
What changed, and why it matters
This is a routine dependency update for the Python Bluetooth library used by Trezor's developer tooling. It bumps the required version of 'bleak' from 1.1.0 to 3.0.2 and, in some optional install paths, excludes Windows and older Python versions. There is no indication in the commit that this fixes a security vulnerability, and no security advisory was supplied.
No immediate security action is required. Treat as a normal dependency-maintenance change. If the project tracks supply-chain risk, review bleak 3.0.2's release notes separately for any unrelated security fixes, but this commit itself does not disclose or address one.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit updates the ‘bleak’ Python BLE dependency across pyproject.toml, python/pyproject.toml, and uv.lock. It raises the minimum version from >=1.1.0 to >=3.0.2. For the optional ‘ble’ and ‘full’ extras in python/pyproject.toml, it additionally constrains the package to Python >=3.10 and non-Windows platforms, with a comment that ‘socket.dev doesn’t like winrt-windows-devices-radios’. The lockfile is regenerated to reflect bleak 3.0.2 and its new transitive dependency winrt-windows-devices-radios on Windows. No source code changes, vulnerability fixes, or CVE references are present.
Changed components
python/pyproject.toml optional extras 'ble' and 'full'root pyproject.toml development dependenciesuv.lock lockfileInspect captured patch +39 / −9
### pyproject.toml
@@ -54,7 +54,7 @@ dependencies = [
"pyelftools>=0.32,<0.33",
"pytest-retry>=1.7.0,<2",
"slh-dsa>=0.1.3,<0.2",
- "bleak>=1.1.0",
+ "bleak>=3.0.2",
"construct-typing>=0.7.0",
"flake8-annotations>=3.1.1,<4",
"stellar-sdk>=15.0.0",
### python/pyproject.toml
@@ -46,7 +46,9 @@ stellar = [
# stellar-sdk 15, which dropped Python 3.9.
"stellar-sdk>=15; python_version >= '3.10'",
]
-ble = ["bleak>=1.1.0"]
+ble = [
+ "bleak>=3.0.2; python_version >= '3.10' and sys_platform != 'win32'",
+]
full = [
"hidapi>=0.7.99.post20",
"web3>=5",
@@ -55,7 +57,8 @@ full = [
"stellar-sdk>=13; python_version < '3.10'",
# stellar-sdk>=15 floor: see the stellar extra above
"stellar-sdk>=15; python_version >= '3.10'",
- "bleak>=1.1.0",
+ # exclude windows as socket.dev doesn't like winrt-windows-devices-radios
+ "bleak>=3.0.2; python_version >= '3.10' and sys_platform != 'win32'",
]
[project.urls]
### uv.lock
@@ -63,7 +63,7 @@ wheels = [
[[package]]
name = "bleak"
-version = "1.1.1"
+version = "3.0.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "dbus-fast", marker = "sys_platform == 'linux'" },
@@ -76,13 +76,14 @@ dependencies = [
{ name = "winrt-windows-devices-bluetooth-advertisement", marker = "sys_platform == 'win32'" },
{ name = "winrt-windows-devices-bluetooth-genericattributeprofile", marker = "sys_platform == 'win32'" },
{ name = "winrt-windows-devices-enumeration", marker = "sys_platform == 'win32'" },
+ { name = "winrt-windows-devices-radios", marker = "sys_platform == 'win32'" },
{ name = "winrt-windows-foundation", marker = "sys_platform == 'win32'" },
{ name = "winrt-windows-foundation-collections", marker = "sys_platform == 'win32'" },
{ name = "winrt-windows-storage-streams", marker = "sys_platform == 'win32'" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/10/88/6bb2bcb94ef7a2f37c5bd5ec99a4ae9208c4caa3fa6d203f9b601e047e64/bleak-1.1.1.tar.gz", hash = "sha256:eeef18053eb3bd569a25bff62cd4eb9ee56be4d84f5321023a7c4920943e6ccb", size = 116277, upload-time = "2025-09-07T18:44:48.978Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/16/df/05a3f80ca8e3f7f5b0dba68a9e618147c909ccdba1468f07487dc8d72a9d/bleak-3.0.2.tar.gz", hash = "sha256:c2229cb8238d5876b4bd05c74bf7a1aea1f88da39d2e51ac9dfd5cc319d5265f", size = 125293, upload-time = "2026-05-02T23:01:04.066Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/81/5a/c3378ba7b05abc7c2d95ae492eac0523d937c77afcb9ff7e7f67fe2ca11d/bleak-1.1.1-py3-none-any.whl", hash = "sha256:e601371396e357d95ee3c256db65b7da624c94ef6f051d47dfce93ea8361c22e", size = 136534, upload-time = "2025-09-07T18:44:47.525Z" },
+ { url = "https://files.pythonhosted.org/packages/26/54/05aceb9cd80073805b3ed8522e3196e8cb22f70e741873fa51406c31f4e7/bleak-3.0.2-py3-none-any.whl", hash = "sha256:39092feb9e83f1df5ad2f88e837723c7211c982ce9e9cda6235104bc2ebe0d0d", size = 146490, upload-time = "2026-05-02T23:01:02.592Z" },
]
[[package]]
@@ -1988,8 +1989,8 @@ dependencies = [
[package.metadata]
requires-dist = [
- { name = "bleak", marker = "extra == 'ble'", specifier = ">=1.1.0" },
- { name = "bleak", marker = "extra == 'full'", specifier = ">=1.1.0" },
+ { name = "bleak", marker = "python_full_version >= '3.10' and sys_platform != 'win32' and extra == 'ble'", specifier = ">=3.0.2" },
+ { name = "bleak", marker = "python_full_version >= '3.10' and sys_platform != 'win32' and extra == 'full'", specifier = ">=3.0.2" },
{ name = "click", specifier = ">=8,<9" },
{ name = "construct", specifier = ">=2.9,!=2.10.55" },
{ name = "construct-classes", specifier = ">=0.1.2" },
@@ -2109,7 +2110,7 @@ dev = [
[package.metadata]
requires-dist = [
{ name = "binsize", specifier = ">=0.1.3,<0.2" },
- { name = "bleak", specifier = ">=1.1.0" },
+ { name = "bleak", specifier = ">=3.0.2" },
{ name = "click", specifier = ">=8,<9" },
{ name = "construct-typing", specifier = ">=0.7.0" },
{ name = "coverage", specifier = "==7.13.5" },
@@ -2442,6 +2443,32 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/5c/a4/898951d5bfc474aa9c7d133fe30870f0f2184f4ba3027eafb779d30eb7bc/winrt_windows_devices_enumeration-3.2.1-cp314-cp314-win_arm64.whl", hash = "sha256:09bf07e74e897e97a49a9275d0a647819254ddb74142806bbbcf4777ed240a22", size = 141334, upload-time = "2025-09-20T07:10:14.637Z" },
]
+[[package]]
+name = "winrt-windows-devices-radios"
+version = "3.2.1"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "winrt-runtime" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/5e/02/9704ea359ad8b0d6faa1011f98fb477e8fb6eac5201f39d19e73c2407e7b/winrt_windows_devices_radios-3.2.1.tar.gz", hash = "sha256:4dc9b9d1501846049eb79428d64ec698d6476c27a357999b78a8331072e18a0b", size = 5908, upload-time = "2025-06-06T14:41:44.868Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/7d/1b/0de659ed4bb80aee28753b4431011334205637a2578481a511866a11e0cf/winrt_windows_devices_radios-3.2.1-cp310-cp310-win32.whl", hash = "sha256:f97766fd551d06c102155d51b2922f96663dee045e1f8d57177def0a2149cb78", size = 38643, upload-time = "2025-06-06T07:07:56.852Z" },
+ { url = "https://files.pythonhosted.org/packages/29/fd/67c6db8a3244ecc95f85970a7b0e749cda28e26563db1274c3db36a8fbe4/winrt_windows_devices_radios-3.2.1-cp310-cp310-win_amd64.whl", hash = "sha256:104b737fa1279a3b6a88ba3c6236157afc1de03c472657c45e5176ad7a209e23", size = 40295, upload-time = "2025-06-06T07:07:57.738Z" },
+ { url = "https://files.pythonhosted.org/packages/15/6d/d145c7f90b01c24f4f9885d1f7d430ecaf2a2b42b6bc236701791b0b0a06/winrt_windows_devices_radios-3.2.1-cp310-cp310-win_arm64.whl", hash = "sha256:55b02877d2de06ca6f0f6140611a9af9d0c65710e28f1afdeaac1040433b1837", size = 37060, upload-time = "2025-06-06T07:07:58.47Z" },
+ { url = "https://files.pythonhosted.org/packages/6b/a0/4a8b51da15de218cec04bcc1cd85b4b93bcfd8ebe50a5f0a7eee28836dc6/winrt_windows_devices_radios-3.2.1-cp311-cp311-win32.whl", hash = "sha256:7c02790472414b6cda00d24a8cd23bca18e4b7474ddad4f9264f4484b891807e", size = 38505, upload-time = "2025-06-06T07:07:59.204Z" },
+ { url = "https://files.pythonhosted.org/packages/de/49/ba69e3180585dbc6f3336a09fef7cba4558a6a1e7d500500f62c1478418e/winrt_windows_devices_radios-3.2.1-cp311-cp311-win_amd64.whl", hash = "sha256:f87745486d313ba1e7562ca97f25ad436ec01ad4b3b9ea349fb6b6f25cb41104", size = 40157, upload-time = "2025-06-06T07:07:59.948Z" },
+ { url = "https://files.pythonhosted.org/packages/9c/92/64817f71a20ecf842da36dc3848f42614217688137a69c93fda8a6103155/winrt_windows_devices_radios-3.2.1-cp311-cp311-win_arm64.whl", hash = "sha256:6cee6f946ff3a3571850d1ca745edaee7c331d06ca321873e650779654effc4a", size = 36976, upload-time = "2025-06-06T07:08:00.719Z" },
+ { url = "https://files.pythonhosted.org/packages/a5/e0/4731a3c412318b2c5e74a8803a32e2fb9afc2c98368c6b61a422eb359e7e/winrt_windows_devices_radios-3.2.1-cp312-cp312-win32.whl", hash = "sha256:c3e683ce682338a5a5ed465f735e223ba7a22f16d0bbea2d070962bc7657edbb", size = 38606, upload-time = "2025-06-06T07:08:01.477Z" },
+ { url = "https://files.pythonhosted.org/packages/37/8e/91464854dfc9e0be9ce8dcbe2bd6a67c19b68ab91584fc5de0f4f13e78f8/winrt_windows_devices_radios-3.2.1-cp312-cp312-win_amd64.whl", hash = "sha256:a116e552a3f38607b9be558fb2e7de9b4450d1f9080069944d74d80cdda1873e", size = 40172, upload-time = "2025-06-06T07:08:02.214Z" },
+ { url = "https://files.pythonhosted.org/packages/c3/0d/1bd62f606b6c4dfa936fccc4712be5506a40fc5d1b7177c3d3cbcaf30972/winrt_windows_devices_radios-3.2.1-cp312-cp312-win_arm64.whl", hash = "sha256:4c28822f9251c9d547324f596b5c2581f050254ded05e5b786c650a3502744c1", size = 36989, upload-time = "2025-06-06T07:08:03.295Z" },
+ { url = "https://files.pythonhosted.org/packages/d1/94/c22a14fd424632f3f3c0b25672218db9e8f4ae9e1355e0b148f2fe6015b5/winrt_windows_devices_radios-3.2.1-cp313-cp313-win32.whl", hash = "sha256:ae4a0065927fcd2d10215223f8a46be6fb89bad71cb4edd25dae3d01c137b3a8", size = 38613, upload-time = "2025-06-06T07:08:04.077Z" },
+ { url = "https://files.pythonhosted.org/packages/39/c1/24cec0cc228642554b48d436a7617d7162fb952919c55fc26e2d99c310bd/winrt_windows_devices_radios-3.2.1-cp313-cp313-win_amd64.whl", hash = "sha256:bf1a975f46a2aa271ffea1340be0c7e64985050d07433e701343dddc22a72290", size = 40180, upload-time = "2025-06-06T07:08:04.849Z" },
+ { url = "https://files.pythonhosted.org/packages/ca/d3/776453af26e78c0d0c0e1bfa89f86fd81322872f31a3e5dafb344dd47bf2/winrt_windows_devices_radios-3.2.1-cp313-cp313-win_arm64.whl", hash = "sha256:10b298ed154c5824cea2de174afce1694ed2aabfb58826de814074027ffef96f", size = 36989, upload-time = "2025-06-06T07:08:05.576Z" },
+ { url = "https://files.pythonhosted.org/packages/76/79/4627afae6b389ddd1e5f1d691663c6b14d6c8f98959082aed1217cc57ef9/winrt_windows_devices_radios-3.2.1-cp314-cp314-win32.whl", hash = "sha256:21452e1cae50e44cd1d5e78159e1b9986ac3389b66458ad89caa196ce5eca2d6", size = 39521, upload-time = "2025-09-20T07:11:17.992Z" },
+ { url = "https://files.pythonhosted.org/packages/a7/7c/c6aea91908ee7279ed51d12157bc8aeecb8850af2441073c3c91b261ad31/winrt_windows_devices_radios-3.2.1-cp314-cp314-win_amd64.whl", hash = "sha256:6a8413e586fe597c6849607885cca7e0549da33ae5699165d11f7911534c6eaf", size = 41121, upload-time = "2025-09-20T07:11:18.747Z" },
+ { url = "https://files.pythonhosted.org/packages/86/c5/652f14e3c501452ad8e0723518d9bbd729219b47f4a4dbe2966c2f82dca8/winrt_windows_devices_radios-3.2.1-cp314-cp314-win_arm64.whl", hash = "sha256:39129fd9d09103adb003575f59881c1a5a70a43310547850150b46c6f4020312", size = 38114, upload-time = "2025-09-20T07:11:19.599Z" },
+]
+
[[package]]
name = "winrt-windows-foundation"
version = "3.2.1"Why this scored 16/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.