aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-josepy/APKBUILD
blob: 9a63ca7c2569e2856918627f5ede6050d5675ae4 (plain) (blame)
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
32
33
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-josepy
_pkgname=josepy
pkgver=1.10.0
pkgrel=0
pkgdesc="JOSE protocol implementation in Python"
url="https://github.com/jezdez/josepy"
arch="noarch"
license="Apache-2.0"
depends="py3-cryptography py3-openssl py3-setuptools py3-six"
makedepends="libffi-dev python3-dev"
source="$_pkgname-$pkgver.tar.gz::https://github.com/certbot/josepy/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces=py-josepy # Backwards compatibility
provides=py-josepy=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

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

sha512sums="
cf4a6fc10981a5500b3b51741c7640f476eb5e240c2e6caafaa70c7b2dd1e9d41d61d4072d01fd151fd4830d329160c770a7652a90eac6545821b67ca9c98335  josepy-1.10.0.tar.gz
"