archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-gnupg / repos / community-any / PKGBUILD
blob16dcceae068cc6d72fe1743578f1d98371b264bf
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: NicoHood <archlinux {cat} nicohood {dog} de>
3 # Contributor: Sven Klomp <mail@klomp.eu>
5 pkgname=python-gnupg
6 pkgdesc="A wrapper for the Gnu Privacy Guard (GPG or GnuPG)"
7 pkgver=0.5.0
8 pkgrel=2
9 arch=(any)
10 url="https://docs.red-dove.com/python-gnupg/"
11 license=(BSD)
12 depends=(gnupg python)
13 makedepends=(python-build python-installer python-setuptools python-wheel)
14 checkdepends=(python-pytest)
15 source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz{,.asc})
16 sha512sums=('cfd302257b53fdc9318004db7323ea5bf4bddc055b65b24386a1ecb27cd476fdf1bc771adcdde70a4eef442982a0c57dc832b92274bbe5ba16cbdf3247f4e77a'
17             'SKIP')
18 b2sums=('0ae7e8ff669f51b47410a7a5aef16ca6792db18f28c59d3ce6615d0852eba1e201e3d000d1f644ffc1a362a74ee56c0930dd5814c23238137d6d8696319fd130'
19         'SKIP')
20 validpgpkeys=('CA749061914EAC138E66EADB9147B477339A9B86') # Vinay Sajip (CODE SIGNING KEY) <vinay_sajip@yahoo.co.uk>
22 build() {
23   cd $pkgname-$pkgver
24   python -m build --wheel --no-isolation
27 check() {
28   cd $pkgname-$pkgver
29   export NO_EXTERNAL_TESTS='true'
30   pytest -vv
33 package() {
34   cd $pkgname-$pkgver
35   python -m installer --destdir="$pkgdir" dist/*.whl
36   install -vDm 644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
37   install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"