36 lines
1.3 KiB
Bash
36 lines
1.3 KiB
Bash
# Template file for 'python3-cryptography'
|
|
pkgname=python3-cryptography
|
|
version=41.0.3
|
|
revision=2
|
|
build_style=python3-module
|
|
build_helper="rust"
|
|
make_check_args="--ignore tests/bench/test_x509.py --ignore tests/bench/test_aead.py"
|
|
hostmakedepends="python3-setuptools-rust python3-cffi cargo pkg-config"
|
|
makedepends="python3-devel openssl-devel"
|
|
depends="python3-cffi"
|
|
checkdepends="python3-pytest-subtests python3-pytest-xdist
|
|
python3-iso8601 python3-pytz python3-cryptography_vectors
|
|
python3-pretend python3-hypothesis python3-pytest-benchmark $depends"
|
|
short_desc="Python3 library that provides cryptographic recipes and primitives"
|
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
|
license="BSD-3-Clause, Apache-2.0"
|
|
homepage="https://github.com/pyca/cryptography"
|
|
changelog="https://raw.githubusercontent.com/pyca/cryptography/master/CHANGELOG.rst"
|
|
distfiles="${PYPI_SITE}/c/cryptography/cryptography-${version}.tar.gz"
|
|
checksum=6d192741113ef5e30d89dcb5b956ef4e1578f304708701b8b73d38e3e1461f34
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
makedepends+=" rust-std"
|
|
export PYO3_CROSS_LIB_DIR="${XBPS_CROSS_BASE}/usr/lib"
|
|
export PYO3_CROSS_INCLUDE_DIR="${XBPS_CROSS_BASE}/usr/include"
|
|
fi
|
|
|
|
pre_check() {
|
|
vsed -i '/addopts/d' pyproject.toml
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vlicense LICENSE.BSD
|
|
}
|