From 085905a7bf8f29f940044808ce8fe8e8886949a1 Mon Sep 17 00:00:00 2001 From: timrid <6593626+timrid@users.noreply.github.com> Date: Sun, 18 Jan 2026 23:32:37 +0100 Subject: [PATCH] Make bumble work on Android using briefcase that is using chaquopy under the hood. --- pyproject.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5f07d2f8..60c7f12a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,15 +15,20 @@ dependencies = [ "aiohttp ~= 3.8; platform_system!='Emscripten'", "appdirs >= 1.4; platform_system!='Emscripten'", "click >= 8.1.3; platform_system!='Emscripten'", - "cryptography >= 44.0.3; platform_system!='Emscripten'", + "cryptography >= 44.0.3; platform_system!='Emscripten' and platform_system!='Android'", # Pyodide bundles a version of cryptography that is built for wasm, which may not match the # versions available on PyPI. Relax the version requirement since it's better than being # completely unable to import the package in case of version mismatch. "cryptography >= 44.0.3; platform_system=='Emscripten'", + # Android wheels for cryptography are not yet available on PyPI, so chaquopy uses + # the builds from https://chaquo.com/pypi-13.1/cryptography/. But these are not regually + # updated. Relax the version requirement since it's better than being completely unable + # to import the package in case of version mismatch. + "cryptography >= 42.0.8; platform_system=='Android'", "grpcio >= 1.62.1; platform_system!='Emscripten'", "humanize >= 4.6.0; platform_system!='Emscripten'", "libusb1 >= 2.0.1; platform_system!='Emscripten'", - "libusb-package == 1.0.26.1; platform_system!='Emscripten'", + "libusb-package == 1.0.26.1; platform_system!='Emscripten' and platform_system!='Android'", "platformdirs >= 3.10.0; platform_system!='Emscripten'", "prompt_toolkit >= 3.0.16; platform_system!='Emscripten'", "prettytable >= 3.6.0; platform_system!='Emscripten'",