Skip to contentSkip to conversation

python3-dacite: Add recipe

PATCH Sean Nyekjaer 2 participants 2 messages Jan 17, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 32 lines · Kasper

From: Kasper Revsbech <[email protected]>

---
 .../python/python3-dacite_1.6.0.bb                | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-dacite_1.6.0.bb
meta-python/recipes-devtools/python/python3-dacite_1.6.0.bb new file +15 -0
new file mode 100644
index 000000000..8161370e1
@@ -0,0 +1,15 @@
+SUMMARY = "Simple creation of data classes from dictionaries."
+HOMEPAGE = "https://github.com/konradhalas/dacite"
+AUTHOR = "Konrad Hałas <[email protected]>"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://setup.py;md5=04d9af9bd5749a02eff535dac0b254d3"
+
+SRC_URI = "https://files.pythonhosted.org/packages/f9/bf/3f0912b4cfd861cd0fb7278c2b8d5bfb0c613ec1b7922e25e4115287b73a/dacite-1.6.0.tar.gz"
+SRC_URI[md5sum] = "0a471b3df66e3923ce0ce544dc4ac66c"
+SRC_URI[sha256sum] = "d48125ed0a0352d3de9f493bf980038088f45f3f9d7498f090b50a847daaa6df"
+
+S = "${WORKDIR}/dacite-1.6.0"
+
+RDEPENDS_${PN} = ""
+
+inherit setuptools3
Signature · 1 line
2.27.0

Hi Khem,

Did you have a look at this one?

/Sean

#2 lore raw
In reply to a message not in the archive
Quoted 19 lines · Kasper

From: Kasper Revsbech <[email protected]>

---
 .../python/python3-dacite_1.6.0.bb                | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-dacite_1.6.0.bb
meta-python/recipes-devtools/python/python3-dacite_1.6.0.bb new file +5 -0
new file mode 100644
index 000000000..8161370e1
@@ -0,0 +1,15 @@
+SUMMARY = "Simple creation of data classes from dictionaries."
+HOMEPAGE = "https://github.com/konradhalas/dacite"
+AUTHOR = "Konrad Hałas <[email protected]>"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://setup.py;md5=04d9af9bd5749a02eff535dac0b254d3"

meta-python/recipes-devtools/python/python3-dacite_1.6.0.bb line 15

Quoted 10 lines
meta-python/recipes-devtools/python/python3-dacite_1.6.0.bb new file +10 -0
+
+SRC_URI = "https://files.pythonhosted.org/packages/f9/bf/3f0912b4cfd861cd0fb7278c2b8d5bfb0c613ec1b7922e25e4115287b73a/dacite-1.6.0.tar.gz"
+SRC_URI[md5sum] = "0a471b3df66e3923ce0ce544dc4ac66c"
+SRC_URI[sha256sum] = "d48125ed0a0352d3de9f493bf980038088f45f3f9d7498f090b50a847daaa6df"
+
+S = "${WORKDIR}/dacite-1.6.0"
+
+RDEPENDS_${PN} = ""
+
+inherit setuptools3

Did you try using pypi.bbclass instead of manually setting SRC_URI, S and HOMEPAGE variables?

/Esben