Files
haikuports/dev-python/aiosignal/aiosignal-1.2.0.recipe
OscarL d8bf95ed80 aiohttp (and dependencies): recipes cleanup. (#10248)
* aiohttp: recipe cleanup.

* aiosignal: recipe cleanup.

* frozenlist: recipe cleanup.

* multidict: recipe cleanup.
2024-03-24 09:28:05 +01:00

82 lines
2.0 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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="4"
SOURCE_URI="https://files.pythonhosted.org/packages/source/${portName:0:1}/$portName/$portName-$portVersion.tar.gz"
CHECKSUM_SHA256="78ed67db6c7b7ced4f98e495e572106d5c432a93e1ddd1bf475e1dc05f5b7df2"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_VERSIONS=(3.10)
for i in "${!PYTHON_VERSIONS[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_${pythonPackage}=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
setuptools_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
INSTALL()
{
for i in "${!PYTHON_VERSIONS[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
pythonPackage=python${pythonVersion//.}
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
}