summaryrefslogtreecommitdiff
path: root/community/py3-asn1-modules/APKBUILD
blob: 317012f48d5a0f4667f45a9e923690ac4b7ad6f1 (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
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-asn1-modules
pkgver=0.2.8
pkgrel=3
pkgdesc="A collection of ASN.1-based protocols modules"
url="https://pypi.python.org/pypi/pyasn1-modules"
arch="noarch"
license="BSD-2-Clause"
depends="py3-asn1<0.5.0"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/p/pyasn1-modules/pyasn1-modules-$pkgver.tar.gz"
builddir="$srcdir"/pyasn1-modules-$pkgver

replaces="py-asn1-modules" # Backwards compatibility
provides="py-asn1-modules=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

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

sha512sums="fdfcaa065deffdd732deaa1fa30dec2fc4a90ffe15bd12de40636ce0212f447611096d2f4e652ed786b5c47544439e6a93721fabe121f3320f13965692a1ca5b  pyasn1-modules-0.2.8.tar.gz"