Skip to content

Commit

Permalink
aiohttp: bump version
Browse files Browse the repository at this point in the history
The previous package is not compatible with chardet 4.0.0 which was
updated in 9ed4286, see
aio-libs/aiohttp#5366
  • Loading branch information
pulkomandy committed Aug 20, 2022
1 parent e32071a commit 1b4a551
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions dev-python/aiohttp/aiohttp-3.8.1.recipe
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 1b4a551

Please sign in to comment.