Fix various Python dependencies

aiohttp: various new dependencies after version bump
cffi: missing dependency
This commit is contained in:
PulkoMandy
2022-08-20 13:51:47 +02:00
parent 1b4a551836
commit 2b9b9a191d
7 changed files with 222 additions and 17 deletions

View File

@@ -0,0 +1,75 @@
SUMMARY="List of registered asynchronous callbacks"
DESCRIPTION="manage callbacks in asyncio projects.
Signal is a list of registered asynchronous callbacks.
The signals life-cycle has two stages: after creation its content could be filled by using \
standard list operations: sig.append() etc.
After you call sig.freeze() the signal is frozen: adding, removing and dropping callbacks is \
forbidden.
The only available operation is calling the previously registered callbacks by using \
await sig.send(data).
For concrete usage examples see the Signals \
<https://docs.aiohttp.org/en/stable/web_advanced.html#aiohttp-web-signals> section of the \
Web Server Advanced <https://docs.aiohttp.org/en/stable/web_advanced.html> chapter of the \
aiohttp documentation."
HOMEPAGE="https://pypi.org/project/aiosignal/"
COPYRIGHT="2019-2021 Nikolay Kim and Martijn Pieters"
LICENSE="Apache v2"
REVISION="1"
SOURCE_URI="https://files.pythonhosted.org/packages/27/6b/a89fbcfae70cf53f066ec22591938296889d3cc58fec1e1c393b10e8d71d/aiosignal-$portVersion.tar.gz"
CHECKSUM_SHA256="78ed67db6c7b7ced4f98e495e572106d5c432a93e1ddd1bf475e1dc05f5b7df2"
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\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
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
}