diff --git a/recipes-devtools/python/python-defusedxml.inc b/recipes-devtools/python/python-defusedxml.inc new file mode 100644 index 0000000..7c644eb --- /dev/null +++ b/recipes-devtools/python/python-defusedxml.inc @@ -0,0 +1,11 @@ +DESCRIPTION = "XML bomb protection for Python stdlib modules" +SECTION = "devel/python" +LICENSE = "PSFL" +LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=a560e172e996ab553d352ccff41c7d20" +SRCNAME = "defusedxml" + +SRC_URI = "http://pypi.python.org/packages/source/d/defusedxml/defusedxml-${PV}.tar.gz" +SRC_URI[md5sum] = "230a5eff64f878b392478e30376d673a" +SRC_URI[sha256sum] = "cd551d5a518b745407635bb85116eb813818ecaf182e773c35b36239fc3f2478" + +S = "${WORKDIR}/${SRCNAME}-${PV}" diff --git a/recipes-devtools/python/python-defusedxml_0.4.1.bb b/recipes-devtools/python/python-defusedxml_0.4.1.bb index aa7bb3a..ae0c6e9 100644 --- a/recipes-devtools/python/python-defusedxml_0.4.1.bb +++ b/recipes-devtools/python/python-defusedxml_0.4.1.bb @@ -1,13 +1,3 @@ -DESCRIPTION = "XML bomb protection for Python stdlib modules" -SECTION = "devel/python" -LICENSE = "PSFL" -LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=a560e172e996ab553d352ccff41c7d20" -SRCNAME = "defusedxml" - -SRC_URI = "http://pypi.python.org/packages/source/d/defusedxml/defusedxml-${PV}.tar.gz" -SRC_URI[md5sum] = "230a5eff64f878b392478e30376d673a" -SRC_URI[sha256sum] = "cd551d5a518b745407635bb85116eb813818ecaf182e773c35b36239fc3f2478" - -S = "${WORKDIR}/${SRCNAME}-${PV}" +require python-defusedxml.inc inherit setuptools diff --git a/recipes-devtools/python/python3-defusedxml_0.4.1.bb b/recipes-devtools/python/python3-defusedxml_0.4.1.bb new file mode 100644 index 0000000..bb1737a --- /dev/null +++ b/recipes-devtools/python/python3-defusedxml_0.4.1.bb @@ -0,0 +1,3 @@ +require python-defusedxml.inc + +inherit setuptools3