aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-pem/APKBUILD
blob: dd6d60f0a30b2af38e7983679ce0ce092bf1e4f6 (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=py3-pem
pkgver=19.2.0
pkgrel=0
pkgdesc="Easy PEM file parsing"
options="!check" # Requires unpackaged pymodule 'pretend'
url="https://pem.readthedocs.io/en/stable/"
arch="noarch"
license="MIT"
depends="python3 py3-twisted"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-certifi py3-openssl"
source="$pkgname-$pkgver.tar.gz::https://github.com/hynek/pem/archive/$pkgver.tar.gz"
builddir="$srcdir/pem-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="fe7c53f01d4246e386b982bf0b5909a7034692784452c5104cc38ac5313066fdee2e9578c8e34d09ccbc356b919a5f7ca0b1cb87a4da1efe22abd10829a05319  py3-pem-19.2.0.tar.gz"