SUMMARY="A Python module providing cryptographic recipes and primitives" DESCRIPTION="cryptography is a module designed to expose cryptographic \ primitives and recipes to Python developers. \ It includes both high level recipes and low level interfaces to common \ cryptographic algorithms such as symmetric ciphers, message digests, and key \ derivation functions." HOMEPAGE="https://cryptography.io/" COPYRIGHT="2013-2020 The cryptography developers" LICENSE="Apache v2 BSD (3-clause)" REVISION="3" SOURCE_URI="https://pypi.io/packages/source/c/cryptography/cryptography-$portVersion.tar.gz" CHECKSUM_SHA256="5a60d3780149e13b7a6ff7ad6526b38846354d11a15e21068e57073e29e19bed" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" PROVIDES=" cryptography$secondaryArchSuffix = $portVersion " REQUIRES=" haiku$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libcrypto$secondaryArchSuffix devel:libffi$secondaryArchSuffix devel:libssl$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:gcc$secondaryArchSuffix cmd:pkg_config$secondaryArchSuffix " PYTHON_PACKAGES=(python38 python39 python310) PYTHON_VERSIONS=(3.8 3.9 3.10) for i in "${!PYTHON_PACKAGES[@]}"; do pythonPackage=${PYTHON_PACKAGES[i]} pythonVersion=${PYTHON_VERSIONS[$i]} eval "PROVIDES_$pythonPackage=\" ${portName}_$pythonPackage = $portVersion \"" eval "REQUIRES_$pythonPackage=\" haiku$secondaryArchSuffix asn1crypto_$pythonPackage cffi_$pythonPackage idna_$pythonPackage pyasn1_$pythonPackage six_$pythonPackage lib:libcrypto$secondaryArchSuffix lib:libpython$pythonVersion$secondaryArchSuffix lib:libssl$secondaryArchSuffix \"" if [ "$targetArchitecture" = "x86_gcc2" ]; then eval "PROVIDES_${pythonPackage}+=\"\n\ cryptography_$pythonPackage = $portVersion\ \"" fi BUILD_REQUIRES="$BUILD_REQUIRES pip_$pythonPackage setuptools_$pythonPackage wheel_$pythonPackage " BUILD_PREREQUIRES="$BUILD_PREREQUIRES cmd:python$pythonVersion" done INSTALL() { for i in "${!PYTHON_PACKAGES[@]}"; do pythonPackage=${PYTHON_PACKAGES[i]} pythonVersion=${PYTHON_VERSIONS[$i]} python=python$pythonVersion installLocation=$prefix/lib/$python/vendor-packages/ export PYTHONPATH=$installLocation mkdir -p "$installLocation" $python setup.py build install \ --optimize=1 \ --root=/ --prefix="$prefix" packageEntries $pythonPackage \ "$prefix"/lib/$python done }