Add CherryPy recipe
CherryPy implements a WSGI server. I am planning on using it
for the REST server initially. WSGI is very modular so a
better server can be dropped in later if one is available.
diff --git a/common/recipes-devtools/python/CherryPy.inc b/common/recipes-devtools/python/CherryPy.inc
new file mode 100644
index 0000000..c69ccad
--- /dev/null
+++ b/common/recipes-devtools/python/CherryPy.inc
@@ -0,0 +1,49 @@
+SUMMARY = "Object-Oriented HTTP framework"
+DESCRIPTION = "CherryPy is a pythonic, object-oriented HTTP framework"
+HOMEPAGE = "http://www.cherrypy.org/"
+SECTION = "devel/python"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://cherrypy/LICENSE.txt;md5=a476d86a3f85c89411ecaad012eed1e3"
+
+inherit allarch
+inherit setuptools
+
+PROVIDES+="${PN}-tests ${PN}-tutorials ${PN}-server ${PN}-scaffold ${PN}-daemon ${PN}-docs"
+PACKAGES+="${PN}-tests ${PN}-tutorials ${PN}-server ${PN}-scaffold ${PN}-daemon ${PN}-docs"
+
+base_package_dir = "${libdir}/python2.7/site-packages"
+package_dir = "${base_package_dir}/cherrypy"
+share_dir = "${datadir}/cherrypy"
+
+SUMMARY_${PN}-server="${BPN} server"
+RDEPENDS_${PN}-server="${PN}"
+FILES_${PN}-server="${package_dir}/wsgiserver ${share_dir}/wsgiserver "
+
+SUMMARY_${PN}-scaffold="${BPN} scaffold"
+RDEPENDS_${PN}-scaffold="${PN}"
+FILES_${PN}-scaffold="${package_dir}/scaffold ${share_dir}/scaffold "
+
+SUMMARY_${PN}-tests="${BPN} tests"
+RDEPENDS_${PN}-tests="${PN}"
+FILES_${PN}-tests="${package_dir}/test ${share_dir}/test "
+
+SUMMARY_${PN}-tutorials ="${BPN} tutorials"
+RDEPENDS_${PN}-tutorials ="${PN}"
+FILES_${PN}-tutorials ="${package_dir}/tutorial ${share_dir}/tutorial "
+
+SUMMARY_${PN}-daemon ="${BPN} daemon"
+RDEPENDS_${PN}-daemon ="${PN}"
+FILES_${PN}-daemon ="${bindir} ${share_dir}/cherryd "
+
+SUMMARY_${PN}-docs ="${BPN} docs"
+RDEPENDS_${PN}-docs ="${PN}"
+FILES_${PN}-docs ="${share_dir}/favicon.ico ${share_dir}/LICENSE.txt "
+
+FILES_${PN} = " \
+ ${package_dir}/*.py* \
+ ${package_dir}/lib \
+ ${package_dir}/process \
+ ${share_dir}/process \
+ ${base_package_dir}/*.egg-info \
+ "
+BBCLASSEXTEND = "nativesdk"
diff --git a/common/recipes-devtools/python/CherryPy_3.8.0.bb b/common/recipes-devtools/python/CherryPy_3.8.0.bb
new file mode 100644
index 0000000..22a56fc
--- /dev/null
+++ b/common/recipes-devtools/python/CherryPy_3.8.0.bb
@@ -0,0 +1,4 @@
+require CherryPy.inc
+SRC_URI = "https://pypi.python.org/packages/source/C/${BPN}/${BP}.tar.gz;name=tarball"
+SRC_URI[tarball.sha256sum] = "ffcdb43667d4098247efaf8c82dd36d3dd4f8e5dc768ef5e90b480899e523bea"
+SRC_URI[tarball.md5sum] = "542b96b2cd825e8120e8cd822bc18f4b"