From 1b4a5518362710b99eb011f73f82ce2f9609bd6e Mon Sep 17 00:00:00 2001 From: PulkoMandy Date: Sat, 20 Aug 2022 13:12:34 +0200 Subject: [PATCH] aiohttp: bump version The previous package is not compatible with chardet 4.0.0 which was updated in 9ed42869451af27a20e0d04a16585f221cd4e89c, see https://github.com/aio-libs/aiohttp/issues/5366 --- dev-python/aiohttp/aiohttp-3.8.1.recipe | 68 +++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 dev-python/aiohttp/aiohttp-3.8.1.recipe diff --git a/dev-python/aiohttp/aiohttp-3.8.1.recipe b/dev-python/aiohttp/aiohttp-3.8.1.recipe new file mode 100644 index 00000000000..4531416d3e3 --- /dev/null +++ b/dev-python/aiohttp/aiohttp-3.8.1.recipe @@ -0,0 +1,68 @@ +SUMMARY="HTTP client/server for asyncio" +DESCRIPTION="Supports both client and server side of HTTP protocol. \ +Supports both client and server Web-Sockets out-of-the-box and avoids \ + Callback Hell. \ +Provides Web-server with middlewares and pluggable routing." +HOMEPAGE="https://pypi.python.org/pypi/aiohttp" +COPYRIGHT="2013-2021 Nikolay Kim and Andrew Svetlov" +LICENSE="Apache v2" +REVISION="1" +SOURCE_URI="https://pypi.org/packages/source/a/aiohttp/aiohttp-$portVersion.tar.gz" +CHECKSUM_SHA256="fc5471e1a54de15ef71c1bc6ebe80d4dc681ea600e68bfd1cbce40427f0b7578" + +ARCHITECTURES="all" + +PROVIDES=" + $portName = $portVersion + " +REQUIRES=" + haiku + " + +BUILD_REQUIRES=" + haiku_devel + " + +PYTHON_PACKAGES=(python3 python38 python39) +PYTHON_VERSIONS=(3.7 3.8 3.9) +for i in "${!PYTHON_PACKAGES[@]}"; do +pythonPackage=${PYTHON_PACKAGES[i]} +pythonVersion=${PYTHON_VERSIONS[$i]} +eval "PROVIDES_${pythonPackage}=\"\ + ${portName}_$pythonPackage = $portVersion\ + \"; \ +REQUIRES_$pythonPackage=\"\ + haiku\n\ + attrs_$pythonPackage\n\ + async_timeout_$pythonPackage\n\ + chardet_$pythonPackage\n\ + multidict_$pythonPackage\n\ + yarl_$pythonPackage\n\ + cmd:python$pythonVersion\ + \"" +BUILD_REQUIRES="$BUILD_REQUIRES + setuptools_$pythonPackage" +BUILD_PREREQUIRES="$BUILD_PREREQUIRES + cmd:gcc$secondaryArchSuffix + 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:$PYTHONPATH + mkdir -p $installLocation + rm -rf build + $python setup.py build install \ + --root=/ --prefix=$prefix + + packageEntries $pythonPackage \ + $prefix/lib/python* + done +} +