aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-cryptography-latest/APKBUILD
blob: 59c88c83199cfca6fc3a892bb08c3f9452204f9c (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Maintainer: Mogens Jensen <mogens-jensen@protonmail.com>

pkgname=py3-cryptography-latest
_pyname=cryptography
pkgver=37.0.2
pkgrel=0
pkgdesc="Cryptographic recipes and primitives for Python - latest version"
url="https://cryptography.io/"
arch="all !riscv64 !s390x"
license="Apache-2.0 OR BSD-3-Clause"
depends="python3
	py3-cffi
	py3-idna
	py3-six
	"
makedepends="cargo
	libffi-dev
	openssl-dev
	python3-dev
	py3-setuptools
	py3-setuptools-rust
	py3-typing-extensions
	"
checkdepends="py3-hypothesis
	py3-iso8601
	py3-pretend
	py3-pytest
	py3-pytest-benchmark
	py3-pytest-subtests
	py3-tz
	"
source="https://files.pythonhosted.org/packages/source/c/cryptography/cryptography-$pkgver.tar.gz
	https://files.pythonhosted.org/packages/source/c/cryptography_vectors/cryptography_vectors-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build

	# prepare cryptography vectors for testing
	cd "$srcdir/cryptography_vectors-$pkgver"
	python3 setup.py build
}

check() {
	PYTHONPATH="$(echo $PWD/build/lib.linux-*):$srcdir/cryptography_vectors-$pkgver/build/lib" pytest
}

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

sha512sums="
28d8b52ca457dec0c854ffb798c9ecb4316c3f161ece5c304c7a5e0cdc86e8b567f1cea82f96f23b01af611e04f48fa310c0e78b3175f4b06e9175acc6a2de45  cryptography-37.0.2.tar.gz
320a4c13f076d6d7bef0437b8b57a76496c51d0266c9958aaeadf73e9d07510e1219f3fa08aee1b30cb6122daf4c0b85538c5be95f1dbd450bacb8cbe464892b  cryptography_vectors-37.0.2.tar.gz
"