1SUMMARY="HTTP client/server for asyncio" 2DESCRIPTION="Supports both client and server side of HTTP protocol. \ 3Supports both client and server Web-Sockets out-of-the-box and avoids Callback Hell. 4 5Provides Web-server with middlewares and pluggable routing." 6HOMEPAGE="https://pypi.python.org/pypi/aiohttp" 7COPYRIGHT="2013-2021 Nikolay Kim and Andrew Svetlov" 8LICENSE="Apache v2" 9REVISION="6" 10SOURCE_URI="https://files.pythonhosted.org/packages/source/a/aiohttp/aiohttp-$portVersion.tar.gz" 11CHECKSUM_SHA256="fc5471e1a54de15ef71c1bc6ebe80d4dc681ea600e68bfd1cbce40427f0b7578" 12 13ARCHITECTURES="all !x86_gcc2" 14SECONDARY_ARCHITECTURES="x86" 15 16PROVIDES=" 17 $portName = $portVersion 18 " 19REQUIRES=" 20 haiku$secondaryArchSuffix 21 " 22 23BUILD_REQUIRES=" 24 haiku${secondaryArchSuffix}_devel 25 " 26BUILD_PREREQUIRES=" 27 gcc$secondaryArchSuffix 28 " 29 30PYTHON_VERSIONS=(3.10) 31 32for i in "${!PYTHON_VERSIONS[@]}"; do 33 pythonVersion=${PYTHON_VERSIONS[$i]} 34 pythonPackage=python${pythonVersion//.} 35 36 eval "PROVIDES_$pythonPackage=\" 37 ${portName}_$pythonPackage = $portVersion 38 \"" 39 40 if [ "$targetArchitecture" = x86_gcc2 ]; then 41 eval "PROVIDES_$pythonPackage+=\" 42 aiohttp_$pythonPackage = $portVersion 43 \"" 44 fi 45 46 eval "REQUIRES_$pythonPackage=\" 47 haiku$secondaryArchSuffix 48 aiosignal_$pythonPackage 49 attrs_$pythonPackage 50 async_timeout_$pythonPackage 51 charset_normalizer_$pythonPackage 52 frozenlist_$pythonPackage 53 multidict_$pythonPackage 54 yarl_$pythonPackage 55 cmd:python$pythonVersion 56 \"" 57 58 BUILD_REQUIRES+=" 59 setuptools_$pythonPackage 60 " 61 BUILD_PREREQUIRES+=" 62 cmd:python$pythonVersion 63 " 64done 65 66INSTALL() 67{ 68 for i in "${!PYTHON_VERSIONS[@]}"; do 69 pythonVersion=${PYTHON_VERSIONS[$i]} 70 pythonPackage=python${pythonVersion//.} 71 72 python=python$pythonVersion 73 installLocation=$prefix/lib/$python/vendor-packages/ 74 export PYTHONPATH=$installLocation:$PYTHONPATH 75 76 mkdir -p $installLocation 77 rm -rf build 78 79 $python setup.py build install \ 80 --root=/ --prefix=$prefix 81 82 packageEntries $pythonPackage \ 83 $prefix/lib/python* 84 done 85} 86