summaryrefslogtreecommitdiff
path: root/user/py3-cryptography/APKBUILD
blob: 9268e3edb4e7be01a0c811989ad29c6caad13a58 (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
34
35
# Contributor: August Klein <amatcoder@gmail.com>
# Contributor: zlg <zlg+adelie@zlg.space>
# Maintainer:
pkgname=py3-cryptography
_pkgname=${pkgname#py3-}
_p="${_pkgname#?}"
_p="${_pkgname%"$_p"}"
pkgver=2.9.2
pkgrel=0
pkgdesc="A package which provides cryptographic recipes and primitives"
url="https://pypi.org/project/cryptography"
arch="all"
options="!check"  # See checkdepends comment below.
license="Apache-2.0 OR BSD-3-Clause"
depends="python3 py3-cffi py3-asn1crypto py3-six"
# requires unpackaged py3-cryptography_vectors which makes no sense to package
#checkdepends="py3-attrs py3-hypothesis py3-pretend py3-pytest py3-tz"
makedepends="python3-dev libffi-dev openssl-dev"
subpackages=""
source="https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

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

sha512sums="a8cb7ba229cddfa15bf4ed00d40e76e2ece57958203b9c50c3f782c7977e1c725fa147a1eebc31d50684a622d53e73f97864e1a935753472ea4b2d89eb6ffb6a  cryptography-2.9.2.tar.gz"