From 9aca78ddf6d269beca776d49945a88e494f4c4ed Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Tue, 16 Jan 2024 18:45:26 +0100 Subject: security/py-merkletools: Refactor Before python 3.6 version pysha3 was required as a runtime dependency however after the import of sha3 this can be skipped. Additionally this port has not been updated since 2019 and should be deprecated. Approved by: portmgr (blanket) --- .../py-merkletools/files/patch-merkletools_____init____.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 security/py-merkletools/files/patch-merkletools_____init____.py (limited to 'security/py-merkletools/files/patch-merkletools_____init____.py') diff --git a/security/py-merkletools/files/patch-merkletools_____init____.py b/security/py-merkletools/files/patch-merkletools_____init____.py new file mode 100644 index 000000000000..b8a32413a358 --- /dev/null +++ b/security/py-merkletools/files/patch-merkletools_____init____.py @@ -0,0 +1,14 @@ +--- merkletools/__init__.py.orig 2024-01-16 17:39:29 UTC ++++ merkletools/__init__.py +@@ -1,11 +1,5 @@ import binascii + import hashlib + import binascii +-try: +- import sha3 +-except: +- from warnings import warn +- warn("sha3 is not working!") +- + + class MerkleTools(object): + def __init__(self, hash_type="sha256"): -- cgit v1.2.3