Skip to contentSkip to conversation

python-pyrsistent: add recipe

PATCH New Ricardo Salveti 1 participant 2 messages Sep 17, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python-pyrsistent: add recipe

Persistent/immutable/functional data structures for python, now required by python-jsonschema.

---
 .../recipes-devtools/python/python-pyrsistent.inc   | 13 +++++++++++++
 .../python/python-pyrsistent_0.15.4.bb              |  2 ++
 .../python/python3-pyrsistent_0.15.4.bb             |  2 ++
 3 files changed, 17 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-pyrsistent.inc
 create mode 100644 meta-python/recipes-devtools/python/python-pyrsistent_0.15.4.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-pyrsistent_0.15.4.bb
meta-python/recipes-devtools/python/python-pyrsistent.inc new file +13 -0
new file mode 100644
index 000000000..2add037de
@@ -0,0 +1,13 @@
+SUMMARY = "Persistent/Immutable/Functional data structures for Python"
+HOMEPAGE = "https://github.com/tobgu/pyrsistent"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENCE.mit;md5=ca574f2891cf528b3e7a2ee570337e7c"
+
+SRC_URI[md5sum] = "0298efae86e009e24136d39dc8b2d33e"
+SRC_URI[sha256sum] = "34b47fa169d6006b32e99d4b3c4031f155e6e68ebcc107d6454852e8e0ee6533"
+
+RDEPENDS_${PN} += " \
+    ${PYTHON_PN}-six \
+"
+
+BBCLASSEXTEND = "native nativesdk"
meta-python/recipes-devtools/python/python-pyrsistent_0.15.4.bb new file +2 -0
new file mode 100644
index 000000000..832eb8038
@@ -0,0 +1,2 @@
+inherit pypi setuptools
+require python-pyrsistent.inc
meta-python/recipes-devtools/python/python3-pyrsistent_0.15.4.bb new file +2 -0
new file mode 100644
index 000000000..2e567e9f9
@@ -0,0 +1,2 @@
+inherit pypi setuptools3
+require python-pyrsistent.inc
Signature · 1 line
2.23.0
#1 lore raw

PATCH 2/2 python-jsonschema: rdepends on attrs and pyrsistent

Release v3.0.2 requires python attrs and pyrsistent.

---
 meta-python/recipes-devtools/python/python-jsonschema.inc | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python-jsonschema.inc +2 -0
index 8f5bdaa58..069a57f26 100644
@@ -8,6 +8,7 @@ SRC_URI[sha256sum] = "8d4a2b7b6c2237e0199c8ea1a6d3e05bf118e289ae2b9d7ba444182a29
 DEPENDS += "${PYTHON_PN}-vcversioner-native ${PYTHON_PN}-setuptools-scm-native"
 
 RDEPENDS_${PN} += " \
+    ${PYTHON_PN}-attrs \
     ${PYTHON_PN}-core \
     ${PYTHON_PN}-io \
     ${PYTHON_PN}-json \
@@ -15,6 +16,7 @@ RDEPENDS_${PN} += " \
     ${PYTHON_PN}-numbers \
     ${PYTHON_PN}-pkgutil \
     ${PYTHON_PN}-pprint \
+    ${PYTHON_PN}-pyrsistent \
     ${PYTHON_PN}-rfc3987 \
     ${PYTHON_PN}-shell \
     ${PYTHON_PN}-strict-rfc3339 \
Signature · 1 line
2.23.0