projects/aports·blob master · refs

37 lines · 1.1 KiB

1# Contributor: Oleg Titov <[email protected]>
2# Maintainer: Oleg Titov <[email protected]>
3pkgname=py3-mnemonic
4pkgver=0.21
5pkgrel=2
6pkgdesc="Python mnemonic code for generating deterministic keys, BIP39"
7url="https://github.com/trezor/python-mnemonic"
8arch="noarch"
9license="MIT"
10makedepends="py3-gpep517 py3-poetry-core"
11checkdepends="py3-pytest"
12subpackages="$pkgname-doc $pkgname-pyc"
13source="mnemonic-$pkgver.tar.gz::https://github.com/trezor/python-mnemonic/archive/refs/tags/v$pkgver.tar.gz"
14builddir="$srcdir/python-mnemonic-$pkgver"
15
16build() {
17 gpep517 build-wheel \
18 --wheel-dir .dist \
19 --output-fd 3 3>&1 >&2
20}
21
22check() {
23 python3 -m venv --clear --without-pip --system-site-packages .testenv
24 .testenv/bin/python3 -m installer .dist/*.whl
25 .testenv/bin/python3 -m pytest
26}
27
28package() {
29 python3 -m installer -d "$pkgdir" \
30 .dist/*.whl
31
32 install -Dm644 README.rst -t "$pkgdir"/usr/share/doc/$pkgname
33}
34
35sha512sums="
36b541052fb48291cf4976fc750d7d502152ac5ef33e203edde9158d768ae826766626ae9979821f3123ea8cf2abec023415e7f8a6dc3fd69d15d9a0570ee3c83c mnemonic-0.21.tar.gz
37"