# Template file for 'python3-cryptography' pkgname=python3-cryptography version=3.4.8 revision=2 wrksrc="${pkgname#python3-}-${version}" build_style=python3-module hostmakedepends="python3-setuptools-rust python3-cffi" makedepends="python3-devel openssl-devel" depends="python3-cffi" checkdepends="python3-pytest-subtests python3-pytz python3-iso8601 python3-cryptography_vectors python3-pretend python3-hypothesis $depends" short_desc="Python3 library that provides cryptographic recipes and primitives" maintainer="Andrew J. Hesford " 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=94cc5ed4ceaefcbe5bf38c8fba6a21fc1d365bb8fb826ea1688e3370b2e24a1c # The rust extension is a no-op designed to test build systems and, # for the moment, does not work properly with Python 3.10 on cross. # Hoepfully upstream tooling will make accommodating Python 3.10 trivial by the # time the rust extension actually does something. # # See, e.g., commit 58bc3876d33bfa5e37a21b5a4b27f016af387a76 to see how the # rust extension was built with Python 3.9. export CRYPTOGRAPHY_DONT_BUILD_RUST=1 post_install() { vlicense LICENSE vlicense LICENSE.BSD chmod 755 ${DESTDIR}/${py3_sitelib}/cryptography/hazmat/bindings/*.so }