mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
Fix various Python dependencies
aiohttp: various new dependencies after version bump cffi: missing dependency
This commit is contained in:
@@ -33,9 +33,13 @@ eval "PROVIDES_${pythonPackage}=\"\
|
||||
\"; \
|
||||
REQUIRES_$pythonPackage=\"\
|
||||
haiku\n\
|
||||
aiosignal_$pythonPackage\n\
|
||||
attrs_$pythonPackage\n\
|
||||
asynctest_$pythonPackage\n\
|
||||
async_timeout_$pythonPackage\n\
|
||||
charset_normalizer_$pythonPackage\n\
|
||||
chardet_$pythonPackage\n\
|
||||
frozenlist_$pythonPackage\n\
|
||||
multidict_$pythonPackage\n\
|
||||
yarl_$pythonPackage\n\
|
||||
cmd:python$pythonVersion\
|
||||
|
||||
75
dev-python/aiosignal/aiosignal-1.2.0.recipe
Normal file
75
dev-python/aiosignal/aiosignal-1.2.0.recipe
Normal 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 signal’s 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
|
||||
}
|
||||
|
||||
@@ -6,10 +6,10 @@ because timeout doesn't create a new task."
|
||||
HOMEPAGE="https://pypi.python.org/pypi/async_timeout"
|
||||
COPYRIGHT="2019 Andrew Svetlov"
|
||||
LICENSE="Apache v2"
|
||||
REVISION="2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://pypi.io/packages/source/a/async-timeout/async-timeout-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f"
|
||||
SOURCE_DIR="async-timeout-$portVersion"
|
||||
CHECKSUM_SHA256="2163e1640ddb52b7a8c80d0a67a08587e5d245cc9c553a74a847056bc2976b15"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
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-2019 Nikolay Kim and Andrew Svetlov"
|
||||
SUMMARY="Unittest package enhncements for testing asyncio libraries"
|
||||
DESCRIPTION="The package asynctest is built on top of the standard unittest module and cuts down \
|
||||
boilerplate code when testing libraries for asyncio.
|
||||
|
||||
Currently, asynctest targets the “selector” model, hence, some features will not (yet?) work with \
|
||||
Windows’ proactor."
|
||||
HOMEPAGE="https://pypi.org/project/asynctest/"
|
||||
COPYRIGHT="2015-2019 Martin Richard"
|
||||
LICENSE="Apache v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://pypi.org/packages/source/a/aiohttp/aiohttp-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="9c1a81af067e72261c9cbe33ea792893e83bc6aa987bfbd6fdc1e5e7b22777c4"
|
||||
SOURCE_URI="https://files.pythonhosted.org/packages/0c/0f/6056f4435923d2f8c89ac9ef2d18506a569348d8f9cc827b0dd7a4c8acc4/asynctest-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="c27862842d15d83e6a34eb0b2866c323880eb3a75e4485b079ea11748fd77fac"
|
||||
|
||||
ARCHITECTURES="all"
|
||||
|
||||
@@ -33,11 +34,6 @@ eval "PROVIDES_${pythonPackage}=\"\
|
||||
\"; \
|
||||
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
|
||||
@@ -4,7 +4,7 @@ HOMEPAGE="https://cffi.readthedocs.io/
|
||||
https://pypi.org/project/cffi/"
|
||||
COPYRIGHT="2012-2021 Armin Rigo, Maciej Fijalkowski"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://files.pythonhosted.org/packages/source/c/cffi/cffi-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="920f0d66a896c2d99f0adbb391f990a84091179542c205fa53ce5787aff87954"
|
||||
|
||||
@@ -41,6 +41,7 @@ REQUIRES_$pythonPackage=\"\
|
||||
haiku\n\
|
||||
lib:libffi$secondaryArchSuffix\n\
|
||||
lib:libpython$pythonVersion$pythonLibSuffix$secondaryArchSuffix\n\
|
||||
pycparser_$pythonPackage\
|
||||
cmd:python$pythonVersion\
|
||||
\""
|
||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
SUMMARY="Open, modern and actively maintained alternative to Chardet"
|
||||
DESCRIPTION="A library that helps you read text from an unknown charset encoding.
|
||||
|
||||
Motivated by chardet, I'm trying to resolve the issue by taking a new approach.
|
||||
All IANA character set names for which the Python core library provides codecs are supported."
|
||||
HOMEPAGE="https://pypi.org/project/charset-normalizer/"
|
||||
COPYRIGHT="2019-2022 Ahmed TAHRI"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://files.pythonhosted.org/packages/a1/34/44964211e5410b051e4b8d2869c470ae8a68ae274953b1c7de6d98bbcf94/charset-normalizer-$portVersion.tar.gz"
|
||||
SOURCE_DIR="charset-normalizer-$portVersion"
|
||||
CHECKSUM_SHA256="5a3d016c7c547f69d6f81fb0db9449ce888b418b5b9952cc5e6e66843e9dd845"
|
||||
|
||||
ARCHITECTURES="all"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
cmd:normalizer
|
||||
"
|
||||
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: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
|
||||
}
|
||||
|
||||
64
dev-python/frozenlist/frozenlist-1.3.1.recipe
Normal file
64
dev-python/frozenlist/frozenlist-1.3.1.recipe
Normal file
@@ -0,0 +1,64 @@
|
||||
SUMMARY="List-like structure which implements collections.abc.MutableSequence"
|
||||
DESCRIPTION="frozenlist.FrozenList is a list-like structure which implements \
|
||||
collections.abc.MutableSequence. The list is mutable until FrozenList.freeze is called, after \
|
||||
which list modifications raise RuntimeError.
|
||||
|
||||
FrozenList is also hashable, but only when frozen."
|
||||
HOMEPAGE="https://pypi.org/project/frozenlist/"
|
||||
COPYRIGHT="2019-2022 aiohttp team"
|
||||
LICENSE="Apache v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://files.pythonhosted.org/packages/8a/95/229aacfe85daa28e2792481a98c336bc30d3729533e6a44db537880aca21/frozenlist-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="3a735e4211a04ccfa3f4833547acdf5d2f863bfeb01cfd3edaffbc251f15cec8"
|
||||
|
||||
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: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