aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-gnupg/APKBUILD
blob: 13754064913923cfcad5ccb06a2d25539a30ed30 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-gnupg
pkgver=0.5.0
pkgrel=1
pkgdesc="Python3 wrapper for the Gnu Privacy Guard (GPG or GnuPG)"
url="https://gnupg.readthedocs.io/en/latest/"
arch="noarch"
license="BSD-3-Clause"
depends="python3 gnupg"
makedepends="py3-setuptools py3-wheel py3-build py3-installer"
checkdepends="py3-pytest"
source="https://pypi.io/packages/source/p/python-gnupg/python-gnupg-$pkgver.tar.gz"
builddir="$srcdir/python-gnupg-$pkgver"

build() {
	python3 -m build --no-isolation --wheel
}

check() {
	NO_EXTERNAL_TESTS=no pytest -v
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/python_gnupg-$pkgver-py2.py3-none-any.whl
}

sha512sums="
cfd302257b53fdc9318004db7323ea5bf4bddc055b65b24386a1ecb27cd476fdf1bc771adcdde70a4eef442982a0c57dc832b92274bbe5ba16cbdf3247f4e77a  python-gnupg-0.5.0.tar.gz
"