blob: 9d922a3d7b68fa799eca1cd1fea835d07566cf63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Michał Adamski <michal@ert.pl>
pkgname=electrum
pkgver=4.4.5
pkgrel=0
pkgdesc="Lightweight Bitcoin Wallet"
url="https://electrum.org/"
arch="noarch"
license="MIT"
depends="
libsecp256k1
py3-aiohttp
py3-aiohttp-socks
py3-aiorpcx
py3-attrs
py3-bitstring
py3-certifi
py3-dnspython
py3-ecdsa
py3-protobuf
py3-pycryptodomex
py3-qrcode
"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="py3-pytest-xdist py3-cryptography py3-pyaes"
subpackages="$pkgname-pyc"
source="
electrum-$pkgver.tar.gz::https://github.com/spesmilo/electrum/archive/refs/tags/$pkgver.tar.gz
0001-apk-add-instead-of-apt-get-install.patch
"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages testenv
testenv/bin/python3 -m installer dist/*.whl
testenv/bin/python3 -m pytest -n auto electrum/tests
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
6eb91e51a2a0de440e0fe5407a6081a6e5ddd833b528f4a175d17d1b8799eb372f0ef0fa3f66a9b0136e39a7e83f238d33edc33c9bcc32e080f3fa9ac0166e24 electrum-4.4.5.tar.gz
1ac73ac652d402e0ca9b59c021dc54bf728ffab1af12997d859884cdd1b092b745640e31684f2bd01a345af9c320ebc29a90e83ebf799c3eec13b52e6e119c5a 0001-apk-add-instead-of-apt-get-install.patch
"
|