From fe741fbbafcde31672643cd6537cd086bc3fe492 Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Mon, 9 Feb 2026 01:19:13 +0100 Subject: [PATCH] community/py3-electrum-aionostr: new aport New dependency for community/electrum. --- community/py3-electrum-aionostr/APKBUILD | 46 ++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 community/py3-electrum-aionostr/APKBUILD diff --git a/community/py3-electrum-aionostr/APKBUILD b/community/py3-electrum-aionostr/APKBUILD new file mode 100644 index 00000000000..eb9df15c658 --- /dev/null +++ b/community/py3-electrum-aionostr/APKBUILD @@ -0,0 +1,46 @@ +maintainer="Hugo Osvaldo Barrera " +pkgname=py3-electrum-aionostr +_pkgname=electrum-aionostr +pkgver=0.1.0 +pkgrel=0 +pkgdesc="asyncio nostr client" +url="https://github.com/spesmilo/electrum-aionostr" +arch="noarch" +license="BSD-3-Clause" +depends=" + py3-aiohttp-socks + py3-aiorpcx + py3-click + py3-cryptography + py3-electrum-ecc + " +makedepends=" + py3-gpep517 + py3-setuptools + py3-wheel + " +checkdepends="py3-pytest-xdist" +subpackages="$pkgname-pyc" +source="electrum-aionostr-$pkgver.tar.gz::https://github.com/spesmilo/electrum-aionostr/archive/refs/tags/$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +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 + # tests/test_aionostr.py: fails depending on version of py3-click. + .testenv/bin/python3 -m pytest -n auto \ + --ignore tests/test_aionostr.py \ + tests +} + +package() { + python3 -m installer -d "$pkgdir" .dist/*.whl +} + +sha512sums=" +f3fa45539391698fa262e9f449abfe98cf55baa79baa3341520a27e1582a5a5f8b3785bb0eb6afb8546b9a057eafbdd83aae77ac772c7aea520bb93a0575f597 electrum-aionostr-0.1.0.tar.gz +"