diff options
author | Matthew Tran | 2023-01-24 00:01:59 -0600 |
---|---|---|
committer | Matthew Tran | 2023-01-24 00:01:59 -0600 |
commit | 002173bbaa31460c04f027721ca8b7d7dd2fff75 (patch) | |
tree | f65491d7920058b3f3ac88cc41572bb3470be0e2 | |
parent | 3c74e4c4d1c5943c490ce625fa9de98b38488d11 (diff) | |
download | aur-002173bbaa31460c04f027721ca8b7d7dd2fff75.tar.gz |
4.2.14
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 11 | ||||
-rw-r--r-- | fix-bitpay-tests.patch | 26 |
3 files changed, 7 insertions, 38 deletions
@@ -1,6 +1,6 @@ pkgbase = electron-cash pkgdesc = Lightweight Bitcoin Cash wallet - pkgver = 4.2.13 + pkgver = 4.2.14 pkgrel = 1 url = http://www.electroncash.org/ arch = any @@ -45,11 +45,9 @@ pkgbase = electron-cash optdepends = zbar: QR code reading support provides = electron-cash conflicts = electron-cash - source = electron-cash-4.2.13.tar.gz::https://github.com/Electron-Cash/Electron-Cash/archive/4.2.13.tar.gz + source = electron-cash-4.2.14.tar.gz::https://github.com/Electron-Cash/Electron-Cash/archive/4.2.14.tar.gz source = secp256k1-0.20.9.tar.gz::https://github.com/Bitcoin-ABC/secp256k1/archive/v0.20.9.tar.gz - source = fix-bitpay-tests.patch - sha256sums = b284f18d8f287b90b5f9e3f093774a8034b72080bb82f1a10ed4fe09de855e81 + sha256sums = 65e227bf34c329730660281f5db4b893b69b6d9f1fefe3061eeebb6fb7d78dec sha256sums = 68e84775e57da77e19ccb6b0dde6ca0882377bdd48ecc6da0047a70201ec64c8 - sha256sums = SKIP pkgname = electron-cash @@ -7,7 +7,7 @@ pkgname='electron-cash' pkgdesc='Lightweight Bitcoin Cash wallet' -pkgver=4.2.13 +pkgver=4.2.14 secp256k1ver=0.20.9 pkgrel=1 url='http://www.electroncash.org/' @@ -60,18 +60,15 @@ optdepends=( provides=("${pkgname}") conflicts=("${pkgname}") source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Electron-Cash/Electron-Cash/archive/${pkgver}.tar.gz" - "secp256k1-${secp256k1ver}.tar.gz::https://github.com/Bitcoin-ABC/secp256k1/archive/v${secp256k1ver}.tar.gz" - "fix-bitpay-tests.patch") -sha256sums=('b284f18d8f287b90b5f9e3f093774a8034b72080bb82f1a10ed4fe09de855e81' - '68e84775e57da77e19ccb6b0dde6ca0882377bdd48ecc6da0047a70201ec64c8' - 'SKIP') + "secp256k1-${secp256k1ver}.tar.gz::https://github.com/Bitcoin-ABC/secp256k1/archive/v${secp256k1ver}.tar.gz") +sha256sums=('65e227bf34c329730660281f5db4b893b69b6d9f1fefe3061eeebb6fb7d78dec' + '68e84775e57da77e19ccb6b0dde6ca0882377bdd48ecc6da0047a70201ec64c8') prepare() { rmdir "Electron-Cash-${pkgver}/contrib/secp256k1" ln -s "${PWD}/secp256k1-${secp256k1ver}" "Electron-Cash-${pkgver}/contrib/secp256k1" sed -i 's/py\.test/pytest/' "Electron-Cash-${pkgver}/tox.ini" - patch -Np1 -d "Electron-Cash-${pkgver}" < fix-bitpay-tests.patch } build() { diff --git a/fix-bitpay-tests.patch b/fix-bitpay-tests.patch deleted file mode 100644 index 0278896c3c7c..000000000000 --- a/fix-bitpay-tests.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff --git a/electroncash/tests/test_paymentrequests.py b/electroncash/tests/test_paymentrequests.py -index 8d26fc16b97..bae843a84ae 100644 ---- a/electroncash/tests/test_paymentrequests.py -+++ b/electroncash/tests/test_paymentrequests.py -@@ -199,8 +199,8 @@ def test_bitpay_verify(self, mock_get): - - def mocked_bitpay_requests_get_incorrect_digest(*args, **kwargs): - response = _signed_response() -- # Trash digest by changing last char -- response.headers['digest'] = response.headers['digest'][:-1] + '0' -+ # Trash digest by flipping last bit -+ response.headers['digest'] = response.headers['digest'][:-1] + chr(ord(response.headers['digest'][-1])^0x1) - return response - - # Verify that a payment request verification fails if the digest is incorrect -@@ -214,8 +214,8 @@ def test_bitpay_verify_incorrect_digest(self, mock_get): - - def mocked_bitpay_requests_get_incorrect_signature(*args, **kwargs): - response = _signed_response() -- # Trash signature by changing last char -- response.headers['signature'] = response.headers['signature'][:-1] + '0' -+ # Trash signature by flipping last bit -+ response.headers['signature'] = response.headers['signature'][:-1] + chr(ord(response.headers['signature'][-1])^0x1) - return response - - # Verify that a payment request verification fails if the signature is incorrect |