1SUMMARY="Low-level Python CFFI Bindings for Argon2" 2DESCRIPTION="argon2-cffi-bindings provides low-level bindings to the Argon2 password hashing \ 3algorithm including a vendored version of them." 4HOMEPAGE="https://pypi.org/project/argon2-cffi-bindings/ 5 https://github.com/hynek/argon2-cffi-bindings/" 6COPYRIGHT="2021 Hynek Schlawack" 7LICENSE="MIT" 8REVISION="3" 9pypi="184b8ccce6683b0aa2fbb7ba5683ea4b9c5763f1356347f1312c32e3c66e" 10SOURCE_URI="https://files.pythonhosted.org/packages/b9/e9/$pypi/argon2-cffi-bindings-$portVersion.tar.gz" 11CHECKSUM_SHA256="bb89ceffa6c791807d1305ceb77dbfacc5aa499891d2c55661c6459651fc39e3" 12SOURCE_DIR="argon2-cffi-bindings-$portVersion" 13 14ARCHITECTURES="all !x86_gcc2" 15SECONDARY_ARCHITECTURES="x86" 16 17PROVIDES=" 18 $portName = $portVersion 19 " 20REQUIRES=" 21 haiku$secondaryArchSuffix 22 lib:libargon2$secondaryArchSuffix 23 lib:libffi$secondaryArchSuffix 24 " 25 26BUILD_REQUIRES=" 27 haiku${secondaryArchSuffix}_devel 28 devel:libargon2$secondaryArchSuffix 29 devel:libffi$secondaryArchSuffix 30 " 31BUILD_PREREQUIRES=" 32 cmd:gcc$secondaryArchSuffix 33 cmd:git 34 " 35 36PYTHON_PACKAGES=(python39 python310) 37PYTHON_VERSIONS=(3.9 3.10) 38for i in "${!PYTHON_PACKAGES[@]}"; do 39 pythonPackage=${PYTHON_PACKAGES[i]} 40 pythonVersion=${PYTHON_VERSIONS[$i]} 41 42 eval "PROVIDES_${pythonPackage}=\" 43 ${portName}_$pythonPackage = $portVersion 44 \"" 45 if [ "$targetArchitecture" = x86_gcc2 ]; then 46 eval "PROVIDES_$pythonPackage+=\" 47 argon2_cffi_bindings_$pythonPackage = $portVersion 48 \"" 49 fi 50 eval "REQUIRES_$pythonPackage=\" 51 haiku 52 cffi${secondaryArchSuffix}_$pythonPackage 53 cmd:python$pythonVersion 54 \"" 55 BUILD_REQUIRES+=" 56 cffi${secondaryArchSuffix}_$pythonPackage 57 build_$pythonPackage 58 installer_$pythonPackage 59 setuptools_scm_$pythonPackage 60 wheel_$pythonPackage 61 " 62 BUILD_PREREQUIRES+=" 63 cmd:python$pythonVersion 64 " 65done 66 67INSTALL() 68{ 69 export ARGON2_CFFI_USE_SYSTEM=1 70 71 for i in "${!PYTHON_PACKAGES[@]}"; do 72 pythonVersion=${PYTHON_VERSIONS[$i]} 73 74 python=python$pythonVersion 75 76 rm -rf dist 77 78 $python -m build --wheel --skip-dependency-check --no-isolation 79 $python -m installer --p $prefix dist/*.whl 80 81 packageEntries ${PYTHON_PACKAGES[i]} \ 82 $prefix/lib/python* 83 done 84} 85