Install gevent-websocket to the image
gevent-websocket is a websocket handler for the gevent networking
library. Websocket is used to push data out from the rest server
to connected clients.
Resolves openbmc/openbmc#2321
Change-Id: Ie381da1b0fd8b95e1fbb55d0063b3b7d9c1cc2c5
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
diff --git a/import-layers/meta-virtualization/recipes-devtools/python/python-gevent-websocket_0.10.1.bb b/import-layers/meta-virtualization/recipes-devtools/python/python-gevent-websocket_0.10.1.bb
new file mode 100644
index 0000000..930ec3a
--- /dev/null
+++ b/import-layers/meta-virtualization/recipes-devtools/python/python-gevent-websocket_0.10.1.bb
@@ -0,0 +1,22 @@
+HOMEPAGE = "https://bitbucket.org/noppo/gevent-websocket"
+SUMMARY = "A websocket library for gevent Python networking library"
+DESCRIPTION = "\
+ WebSocket is a computer communications protocol, providing full-duplex \
+ communication channels over a single TCP connection. gevent-websocket \
+ library provides websocket support for gevent. \
+ "
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=5aa2f1d4ea55d60497aa8c3debf29ab2"
+
+RDEPENDS_${PN} = "python-gevent"
+
+SRCNAME = "gevent-websocket"
+
+SRC_URI = "https://pypi.python.org/packages/98/d2/6fa19239ff1ab072af40ebf339acd91fb97f34617c2ee625b8e34bf42393/gevent-websocket-${PV}.tar.gz"
+SRC_URI[md5sum] = "e095bf3358175489a956949c1b4de9ff"
+SRC_URI[sha256sum] = "7eaef32968290c9121f7c35b973e2cc302ffb076d018c9068d2f5ca8b2d85fb0"
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
diff --git a/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-gevent.bb b/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-gevent.bb
index ee24a13..4301e6b 100644
--- a/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-gevent.bb
+++ b/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-gevent.bb
@@ -14,6 +14,8 @@
RDEPENDS_${PN} += " \
python-gevent \
"
+RRECOMMENDS_${PN} += "python-gevent-websocket"
+
S = "${WORKDIR}/git/servers/gevent"
diff --git a/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-rest.bb b/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-rest.bb
index 6361f25..a1a8cfd 100644
--- a/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-rest.bb
+++ b/meta-phosphor/common/recipes-phosphor/interfaces/phosphor-rest.bb
@@ -9,7 +9,10 @@
require phosphor-rest.inc
-RRECOMMENDS_${PN} += "virtual-obmc-wsgihost"
+RRECOMMENDS_${PN} += " \
+ virtual-obmc-wsgihost \
+ python-gevent-websocket \
+ "
RDEPENDS_${PN} += " \
python-xml \