From 19ac543b4dc8d589022031dad414d98d5ea24e68 Mon Sep 17 00:00:00 2001
From: Wojciech Zmuda <wojciech.zmuda@huawei.com>
Date: Tue, 20 Apr 2021 23:43:53 +0200
Subject: [PATCH] ohsmarthome-py: Add recipe

This recipe installs a Python library that can be used for
communication over BLE with IoT devices using AllScenariOS
Smart Home firmware.

It is used by Smart Panel Home Assistant plugin.

Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com>
Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 .../ohsmarthome-py/ohsmarthome-py_git.bb      | 26 +++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 meta-ohos-blueprints/recipes-homeassistant/ohsmarthome-py/ohsmarthome-py_git.bb

diff --git a/meta-ohos-blueprints/recipes-homeassistant/ohsmarthome-py/ohsmarthome-py_git.bb b/meta-ohos-blueprints/recipes-homeassistant/ohsmarthome-py/ohsmarthome-py_git.bb
new file mode 100644
index 00000000..ee7a16b5
--- /dev/null
+++ b/meta-ohos-blueprints/recipes-homeassistant/ohsmarthome-py/ohsmarthome-py_git.bb
@@ -0,0 +1,26 @@
+# SPDX-FileCopyrightText: Huawei Inc.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+SUMMARY = "All Scenarios OS SmartHome device interface library"
+HOMEPAGE = "https://git.ostc-eu.org/OSTC/OHOS/components/ohsmarthome-py/"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSES/Apache-2.0.txt;md5=c846ebb396f8b174b10ded4771514fcc"
+
+SRC_OPT_CLONE_DIR = "git/components/ohsmarthome-py"
+SRC_OPT_PROTO = "protocol=https"
+SRC_OPT_DEST = "destsuffix=${SRC_OPT_CLONE_DIR}"
+SRC_OPT_NAME = "name=ohsmarthome-py"
+SRC_OPT_BRANCH = "branch=master"
+
+SRC_OPTIONS = "${SRC_OPT_PROTO};${SRC_OPT_DEST};${SRC_OPT_NAME};${SRC_OPT_BRANCH}"
+SRC_URI = "git://git.ostc-eu.org/OSTC/OHOS/components/ohsmarthome-py.git;${SRC_OPTIONS}"
+SRCREV_ohsmarthome-py = "3ea56efa56937939565c127810de55a05c9e4703"
+
+S = "${WORKDIR}/${SRC_OPT_CLONE_DIR}"
+
+inherit setuptools3
+
+RDEPENDS_${PN} += "\
+    python3-bluepy \
+    "
-- 
GitLab