-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The previous package is not compatible with chardet 4.0.0 which was updated in 9ed4286, see aio-libs/aiohttp#5366
- Loading branch information
1 parent
e32071a
commit 1b4a551
Showing
1 changed file
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
|