archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-cryptography / trunk / PKGBUILD
blob2da6a93ac06d08a003121a522db4aee3a4d95dd8
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-cryptography
4 pkgver=37.0.2
5 pkgrel=1
6 pkgdesc="A package designed to expose cryptographic recipes and primitives to Python developers"
7 arch=('x86_64')
8 license=('Apache')
9 url="https://pypi.python.org/pypi/cryptography"
10 depends=('python-cffi')
11 makedepends=('python-setuptools-rust')
12 checkdepends=('python-pytest-runner' 'python-pytest-subtests' "python-cryptography-vectors=$pkgver"
13               'python-iso8601' 'python-pretend' 'python-hypothesis' 'python-pytz'
14               'python-pytest-benchmark')
15 source=("https://pypi.io/packages/source/c/cryptography/cryptography-$pkgver.tar.gz")
16 sha512sums=('28d8b52ca457dec0c854ffb798c9ecb4316c3f161ece5c304c7a5e0cdc86e8b567f1cea82f96f23b01af611e04f48fa310c0e78b3175f4b06e9175acc6a2de45')
18 build() {
19   cd cryptography-$pkgver
20   python setup.py build
23 check() {
24   cd cryptography-$pkgver
25   python setup.py pytest
28 package() {
29   cd cryptography-$pkgver
30   python setup.py install --root="$pkgdir" --optimize=1 --skip-build