[meta-python,04/16] python3-eth-hash: new package

Message ID 20220512084152.1388464-5-brgl@bgdev.pl
State Under Review
Headers show
Series python: add a bunch of packages for interacting with ethereum blockchains | expand

Commit Message

Bartosz Golaszewski May 12, 2022, 8:41 a.m. UTC
Add a recipe for eth-hash: the Ethereum hashing function module.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
---
 .../packagegroups/packagegroup-meta-python.bb            | 1 +
 .../recipes-devtools/python/python3-eth-hash_0.3.2.bb    | 9 +++++++++
 2 files changed, 10 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-eth-hash_0.3.2.bb

Patch

diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
index 922a08af5..4b32c7db2 100644
--- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
+++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
@@ -110,6 +110,7 @@  RDEPENDS:packagegroup-meta-python3 = "\
     python3-email-validator \
     python3-engineio \
     python3-et-xmlfile \
+    python3-eth-hash \
     python3-evdev \
     python3-execnet \
     python3-fann2 \
diff --git a/meta-python/recipes-devtools/python/python3-eth-hash_0.3.2.bb b/meta-python/recipes-devtools/python/python3-eth-hash_0.3.2.bb
new file mode 100644
index 000000000..c9630b172
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-eth-hash_0.3.2.bb
@@ -0,0 +1,9 @@ 
+SUMMARY = "The Ethereum hashing function, keccak256, sometimes (erroneously) called sha3."
+HOMEPAGE = "https://github.com/ethereum/eth-hash"
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=287820ad3553117aa2f92bf84c219324"
+
+SRC_URI[sha256sum] = "3f40cecd5ead88184aa9550afc19d057f103728108c5102f592f8415949b5a76"
+
+inherit pypi setuptools3