[meta-python][PATCH 08/16] python3-eth-keyfile: new package


Bartosz Golaszewski
 

Add a recipe for eth-keyfile: a library for handling the encrypted
keyfiles used to store ethereum private keys.

Signed-off-by: Bartosz Golaszewski <brgl@...>
---
.../packagegroups/packagegroup-meta-python.bb | 1 +
...-setup-don-t-use-setuptools-markdown.patch | 36 +++++++++++++++++++
.../python/python3-eth-keyfile_0.6.0.bb | 16 +++++++++
3 files changed, 53 insertions(+)
create mode 100644 meta-python/recipes-devtools/python/python3-eth-keyfile/0001-setup-don-t-use-setuptools-markdown.patch
create mode 100644 meta-python/recipes-devtools/python/python3-eth-keyfile_0.6.0.bb

diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
index 41bb24b32..5e41d92c1 100644
--- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
+++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
@@ -111,6 +111,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
python3-engineio \
python3-et-xmlfile \
python3-eth-hash \
+ python3-eth-keyfile \
python3-eth-keys \
python3-eth-typing \
python3-eth-utils \
diff --git a/meta-python/recipes-devtools/python/python3-eth-keyfile/0001-setup-don-t-use-setuptools-markdown.patch b/meta-python/recipes-devtools/python/python3-eth-keyfile/0001-setup-don-t-use-setuptools-markdown.patch
new file mode 100644
index 000000000..7b8120380
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-eth-keyfile/0001-setup-don-t-use-setuptools-markdown.patch
@@ -0,0 +1,36 @@
+From 4348c72877e049804c7cdb7eec7a6bcd7ac2ea1d Mon Sep 17 00:00:00 2001
+From: Bartosz Golaszewski <brgl@...>
+Date: Wed, 11 May 2022 13:21:30 +0200
+Subject: [PATCH] setup: don't use setuptools-markdown
+
+This project is deprecated and irrelevant for the functionality of
+eth-keyfile. We don't support it in meta-python so just drop it from
+the dependencies.
+
+Signed-off-by: Bartosz Golaszewski <brgl@...>
+---
+ setup.py | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index cbb7f4c..7702aa4 100644
+--- a/setup.py
++++ b/setup.py
+@@ -51,14 +51,12 @@ setup(
+ "A library for handling the encrypted keyfiles used to store ethereum "
+ "private keys."
+ ),
+- long_description_markdown_filename='README.md',
+ author='Piper Merriam',
+ author_email='pipermerriam@...',
+ url='https://github.com/ethereum/eth-keyfile',
+ include_package_data=True,
+ install_requires=install_requires,
+ extras_require=deps,
+- setup_requires=['setuptools-markdown'],
+ py_modules=['eth_keyfile'],
+ license="MIT",
+ zip_safe=False,
+--
+2.34.1
+
diff --git a/meta-python/recipes-devtools/python/python3-eth-keyfile_0.6.0.bb b/meta-python/recipes-devtools/python/python3-eth-keyfile_0.6.0.bb
new file mode 100644
index 000000000..9477632e2
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-eth-keyfile_0.6.0.bb
@@ -0,0 +1,16 @@
+SUMMARY = "A library for handling the encrypted keyfiles used to store ethereum private keys."
+HOMEPAGE = "https://github.com/ethereum/eth-keyfile"
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2beaef1b1764f4d6b46084c885b4bcad"
+
+SRC_URI[sha256sum] = "d30597cdecb8ccd3b56bb275cd86fcdc7a279f86eafa92ddc49f66512f0bff67"
+SRC_URI += "file://0001-setup-don-t-use-setuptools-markdown.patch"
+
+inherit pypi setuptools3
+
+RDEPENDS:${PN} += " \
+ python3-eth-keys \
+ python3-pycryptodome \
+ python3-setuptools \
+"
--
2.34.1

Join {openembedded-devel@lists.openembedded.org to automatically receive all group messages.