From 0994fb818270018e407544427a5d4f43ef9914c8 Mon Sep 17 00:00:00 2001 From: Nick Pillitteri Date: Mon, 9 Dec 2019 11:14:36 -0500 Subject: [PATCH] add ability to build Python PySNMP for Python3 Signed-off-by: Nick Pillitteri --- .../recipes-devtools/python/python-pysnmp.inc | 26 +++++++++++++++++ .../python/python-pysnmp_4.4.9.bb | 28 ++----------------- .../python/python3-pysnmp_4.4.9.bb | 2 ++ 3 files changed, 30 insertions(+), 26 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python-pysnmp.inc create mode 100644 meta-python/recipes-devtools/python/python3-pysnmp_4.4.9.bb diff --git a/meta-python/recipes-devtools/python/python-pysnmp.inc b/meta-python/recipes-devtools/python/python-pysnmp.inc new file mode 100644 index 00000000000..8883df9d8c8 --- /dev/null +++ b/meta-python/recipes-devtools/python/python-pysnmp.inc @@ -0,0 +1,26 @@ +SUMMARY = "A pure-Python SNMPv1/v2c/v3 library" +DESCRIPTION = "SNMP v1/v2c/v3 engine and apps written in pure-Python. \ + Supports Manager/Agent/Proxy roles, scriptable MIBs, asynchronous \ + operation (asyncio, twisted, asyncore) and multiple transports.\ +" +HOMEPAGE = "https://pypi.python.org/pypi/pysnmp" +SECTION = "devel/python" +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=b15d29f500f748d1c2a15709769090a8" + +SRCNAME = "pysnmp" + +SRC_URI = "https://files.pythonhosted.org/packages/source/p/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" + +SRC_URI[md5sum] = "6d1b514997326bed18f1ae1510f6b1c9" +SRC_URI[sha256sum] = "d5d1e59780126e963dd92e25993b783295734e71bef181f602e51f7393260441" + + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools + +RDEPENDS_${PN} += "python-pycrypto \ + python-pyasn1 \ + python-pysmi \ +" diff --git a/meta-python/recipes-devtools/python/python-pysnmp_4.4.9.bb b/meta-python/recipes-devtools/python/python-pysnmp_4.4.9.bb index 8883df9d8c8..44dfc4d2164 100644 --- a/meta-python/recipes-devtools/python/python-pysnmp_4.4.9.bb +++ b/meta-python/recipes-devtools/python/python-pysnmp_4.4.9.bb @@ -1,26 +1,2 @@ -SUMMARY = "A pure-Python SNMPv1/v2c/v3 library" -DESCRIPTION = "SNMP v1/v2c/v3 engine and apps written in pure-Python. \ - Supports Manager/Agent/Proxy roles, scriptable MIBs, asynchronous \ - operation (asyncio, twisted, asyncore) and multiple transports.\ -" -HOMEPAGE = "https://pypi.python.org/pypi/pysnmp" -SECTION = "devel/python" -LICENSE = "BSD-2-Clause" -LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=b15d29f500f748d1c2a15709769090a8" - -SRCNAME = "pysnmp" - -SRC_URI = "https://files.pythonhosted.org/packages/source/p/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" - -SRC_URI[md5sum] = "6d1b514997326bed18f1ae1510f6b1c9" -SRC_URI[sha256sum] = "d5d1e59780126e963dd92e25993b783295734e71bef181f602e51f7393260441" - - -S = "${WORKDIR}/${SRCNAME}-${PV}" - -inherit setuptools - -RDEPENDS_${PN} += "python-pycrypto \ - python-pyasn1 \ - python-pysmi \ -" +inherit distutils +require python-pysnmp.inc diff --git a/meta-python/recipes-devtools/python/python3-pysnmp_4.4.9.bb b/meta-python/recipes-devtools/python/python3-pysnmp_4.4.9.bb new file mode 100644 index 00000000000..46fa648807c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pysnmp_4.4.9.bb @@ -0,0 +1,2 @@ +inherit distutils3 +require python-pysnmp.inc