b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2023 |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | include $(TOPDIR)/rules.mk |
| 8 | |
| 9 | PKG_NAME:=python-bleak |
| 10 | PKG_VERSION:=0.21.1 |
| 11 | PKG_RELEASE:=2 |
| 12 | |
| 13 | PYPI_NAME:=bleak |
| 14 | PKG_HASH:=ec4a1a2772fb315b992cbaa1153070c7e26968a52b0e2727035f443a1af5c18f |
| 15 | |
| 16 | PKG_MAINTAINER:=Quintin Hill <stuff@quintin.me.uk> |
| 17 | PKG_LICENSE:=MIT |
| 18 | PKG_LICENSE_FILES:=LICENSE |
| 19 | |
| 20 | PKG_BUILD_DEPENDS:=python-poetry-core/host |
| 21 | |
| 22 | include ../pypi.mk |
| 23 | include $(INCLUDE_DIR)/package.mk |
| 24 | include ../python3-package.mk |
| 25 | |
| 26 | define Package/python3-bleak |
| 27 | SECTION:=lang |
| 28 | CATEGORY:=Languages |
| 29 | SUBMENU:=Python |
| 30 | TITLE:=Bluetooth Low Energy platform Agnostic Klient |
| 31 | URL:=https://github.com/hbldh/bleak |
| 32 | DEPENDS:=+python3-light +python3-async-timeout +python3-asyncio \ |
| 33 | +python3-dbus-fast +python3-ctypes +python3-typing-extensions +python3-logging |
| 34 | endef |
| 35 | |
| 36 | define Package/python3-bleak/description |
| 37 | Bleak is an acronym for Bluetooth Low Energy platform Agnostic Klient. |
| 38 | Bleak is a GATT client software, capable of connecting to BLE devices acting |
| 39 | as GATT servers. It is designed to provide a asynchronous, cross-platform |
| 40 | Python API to connect and communicate with e.g. sensors. |
| 41 | endef |
| 42 | |
| 43 | $(eval $(call Py3Package,python3-bleak)) |
| 44 | $(eval $(call BuildPackage,python3-bleak)) |
| 45 | $(eval $(call BuildPackage,python3-bleak-src)) |