diff options
-rw-r--r-- | finance/electrum/Makefile | 7 | ||||
-rw-r--r-- | finance/electrum/distinfo | 3 | ||||
-rw-r--r-- | finance/electrum/patches/patch-electrum_electrum | 15 |
3 files changed, 22 insertions, 3 deletions
diff --git a/finance/electrum/Makefile b/finance/electrum/Makefile index fbdbece4af0..816678eceea 100644 --- a/finance/electrum/Makefile +++ b/finance/electrum/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2021/11/25 08:51:23 wiz Exp $ +# $NetBSD: Makefile,v 1.10 2021/11/25 19:52:43 adam Exp $ VERSION= 4.1.5 DISTNAME= Electrum-${VERSION} @@ -23,7 +23,7 @@ DEPENDS+= ${PYPKGPREFIX}-dns<2.0:../../net/py-dns # Seems to work without qdarkstyle? Commented out as it's currently not packaged #DEPENDS+= ${PYPKGPREFIX}-qdarkstyle<2.9:../../ DEPENDS+= ${PYPKGPREFIX}-aiorpcX>0.18:../../net/py-aiorpcX -DEPENDS+= ${PYPKGPREFIX}-aiohttp>=3.3.0<4.0.0:../../www/py-aiohttp +DEPENDS+= ${PYPKGPREFIX}-aiohttp>=3.3.0:../../www/py-aiohttp DEPENDS+= ${PYPKGPREFIX}-aiohttp-socks>=0.3:../../www/py-aiohttp-socks DEPENDS+= ${PYPKGPREFIX}-certifi-[0-9]*:../../security/py-certifi DEPENDS+= ${PYPKGPREFIX}-bitstring-[0-9]*:../../devel/py-bitstring @@ -33,6 +33,9 @@ DEPENDS+= libsecp256k1>=0.1:../../security/libsecp256k1 REPLACE_PYTHON+= electrum/electrum REPLACE_PYTHON+= electrum/scripts/*.py +post-install: + ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/electrum/electrum.orig + .include "../../lang/python/application.mk" .include "../../lang/python/egg.mk" .include "../../sysutils/desktop-file-utils/desktopdb.mk" diff --git a/finance/electrum/distinfo b/finance/electrum/distinfo index 8bb7ffcac3b..14f4a6a4a33 100644 --- a/finance/electrum/distinfo +++ b/finance/electrum/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.7 2021/11/08 16:37:04 cirnatdan Exp $ +$NetBSD: distinfo,v 1.8 2021/11/25 19:52:43 adam Exp $ BLAKE2s (Electrum-4.1.5.tar.gz) = f9a35a7671bb8dfae3e04d9cbbda657cc2919595bc1b2923f87bab883df11580 SHA512 (Electrum-4.1.5.tar.gz) = fbffd2366c8521e37da21dce0a59ca140f63635df5a2f31d5faafbc1267384bc6c76f66502a19cdcb4d4100f249c12bc336a54795a8b840bf299b5fda4bc1c8e Size (Electrum-4.1.5.tar.gz) = 12066769 bytes SHA1 (patch-electrum-ecc_fast.py) = 3e500f6b8fda61ae757a1ae6072b66449ab55883 +SHA1 (patch-electrum_electrum) = 3e5bdea8f1af7d3ce72e4043a9d0439c45de6694 SHA1 (patch-setup.py) = 7f6472a2278073c15cdfe4c25f911871165b085f diff --git a/finance/electrum/patches/patch-electrum_electrum b/finance/electrum/patches/patch-electrum_electrum new file mode 100644 index 00000000000..eb6533608a7 --- /dev/null +++ b/finance/electrum/patches/patch-electrum_electrum @@ -0,0 +1,15 @@ +$NetBSD: patch-electrum_electrum,v 1.1 2021/11/25 19:52:43 adam Exp $ + +Allow newer py-aiorpcX. + +--- electrum/electrum.orig 2021-11-25 08:44:10.000000000 +0000 ++++ electrum/electrum +@@ -63,8 +63,6 @@ def check_imports(): + import aiorpcx + except ImportError as e: + sys.exit(f"Error: {str(e)}. Try 'sudo python3 -m pip install <module-name>'") +- if not ((0, 18, 7) <= aiorpcx._version < (0, 19)): +- raise RuntimeError(f'aiorpcX version {aiorpcx._version} does not match required: 0.18.7<=ver<0.19') + # the following imports are for pyinstaller + from google.protobuf import descriptor + from google.protobuf import message |