[v2] package/python-bluezero: new package
diff mbox series

Message ID 20190903212422.3416-1-grzegorz@blach.pl
State New
Headers show
Series
  • [v2] package/python-bluezero: new package
Related show

Commit Message

Grzegorz Blach Sept. 3, 2019, 9:24 p.m. UTC
Python library for Bluetooth Low Energy (BLE) on Linux.

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
---
Changes v1 -> v2:
  - Removed BR2_PACKAGE_PYTHON_AIOBLESCAN from runtime dependencies
    since this is an optional dependency (used only by observer.py
    module).

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
---
 DEVELOPERS                                   |  1 +
 package/Config.in                            |  1 +
 package/python-bluezero/Config.in            |  6 ++++++
 package/python-bluezero/python-bluezero.hash |  3 +++
 package/python-bluezero/python-bluezero.mk   | 13 +++++++++++++
 5 files changed, 24 insertions(+)
 create mode 100644 package/python-bluezero/Config.in
 create mode 100644 package/python-bluezero/python-bluezero.hash
 create mode 100644 package/python-bluezero/python-bluezero.mk

Patch
diff mbox series

diff --git a/DEVELOPERS b/DEVELOPERS
index e50ac78ae7..f84a66ecab 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -975,6 +975,7 @@  F:	package/bluez5_utils-headers/
 F:	package/f2fs-tools/
 F:	package/pigpio/
 F:	package/python-aioblescan/
+F:	package/python-bluezero/
 F:	package/python-falcon/
 F:	package/python-ifaddr/
 F:	package/python-hiredis/
diff --git a/package/Config.in b/package/Config.in
index 710ed12be0..175d8661b8 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -841,6 +841,7 @@  menu "External python modules"
 	source "package/python-bcrypt/Config.in"
 	source "package/python-beautifulsoup4/Config.in"
 	source "package/python-bitstring/Config.in"
+	source "package/python-bluezero/Config.in"
 	source "package/python-bottle/Config.in"
 	source "package/python-cached-property/Config.in"
 	source "package/python-can/Config.in"
diff --git a/package/python-bluezero/Config.in b/package/python-bluezero/Config.in
new file mode 100644
index 0000000000..297f096577
--- /dev/null
+++ b/package/python-bluezero/Config.in
@@ -0,0 +1,6 @@ 
+config BR2_PACKAGE_PYTHON_BLUEZERO
+	bool "python-bluezero"
+	help
+	  Python library for Bluetooth Low Energy (BLE) on Linux.
+
+	  https://github.com/ukBaz/python-bluezero
diff --git a/package/python-bluezero/python-bluezero.hash b/package/python-bluezero/python-bluezero.hash
new file mode 100644
index 0000000000..e1adcf5672
--- /dev/null
+++ b/package/python-bluezero/python-bluezero.hash
@@ -0,0 +1,3 @@ 
+# md5, sha256 from https://pypi.org/pypi/bluezero/json
+md5	b13fd84a5fe98ce9526a6f513c9131b1  bluezero-0.2.0.tar.gz
+sha256	d16eb9ac048665a974ad0db312b23bfd528423000b7b2983566b853d5e0d19b6  bluezero-0.2.0.tar.gz
diff --git a/package/python-bluezero/python-bluezero.mk b/package/python-bluezero/python-bluezero.mk
new file mode 100644
index 0000000000..1271b997a9
--- /dev/null
+++ b/package/python-bluezero/python-bluezero.mk
@@ -0,0 +1,13 @@ 
+################################################################################
+#
+# python-bluezero
+#
+################################################################################
+
+PYTHON_BLUEZERO_VERSION = 0.2.0
+PYTHON_BLUEZERO_SOURCE = bluezero-$(PYTHON_BLUEZERO_VERSION).tar.gz
+PYTHON_BLUEZERO_SITE = https://files.pythonhosted.org/packages/9c/76/8f5250e119be8aff4f7ac3acb9d91589909d8650152fdf6758bfb01f9576
+PYTHON_BLUEZERO_SETUP_TYPE = setuptools
+PYTHON_BLUEZERO_LICENSE = MIT
+
+$(eval $(python-package))