From 56ab82fe23b8af40fe05d05249c7cfb81694dfc0 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Thu, 12 May 2022 10:41:44 +0200 Subject: [PATCH] python3-eth-keyfile: new package Add a recipe for eth-keyfile: a library for handling the encrypted keyfiles used to store ethereum private keys. Signed-off-by: Bartosz Golaszewski Signed-off-by: Khem Raj --- .../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 41bb24b324..5e41d92c1e 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 0000000000..7b81203807 --- /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 +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 +--- + 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@gmail.com', + 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 0000000000..9477632e2f --- /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 \ +"