mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-19 18:20:07 +02:00
aiohttp: bump version
The previous package is not compatible with chardet 4.0.0 which was
updated in 9ed4286945, see
https://github.com/aio-libs/aiohttp/issues/5366
This commit is contained in:
68
dev-python/aiohttp/aiohttp-3.8.1.recipe
Normal file
68
dev-python/aiohttp/aiohttp-3.8.1.recipe
Normal file
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user