1SUMMARY="HTTP library with thread-safe connection pooling, file post, and more" 2DESCRIPTION="- Re-use the same socket connection for multiple requests \ 3(HTTPConnectionPool and HTTPSConnectionPool) with optional client-side \ 4certificate verification. 5- File posting (encode_multipart_formdata). 6- Built-in redirection and retries (optional). 7- Supports gzip and deflate decoding. 8- Thread-safe and sanity-safe. 9- Works with AppEngine, gevent, and eventlib. 10- Tested on Python 2.6+, Python 3.2+, and PyPy, with 100% unit test coverage. 11- Small and easy to understand codebase perfect for extending and building \ 12upon. 13 14For a more comprehensive solution, have a look at \ 15Requests <http://python-requests.org/> which is also powered by urllib3" 16HOMEPAGE="https://urllib3.readthedocs.io/ 17 https://pypi.org/project/urllib3/ 18 https://github.com/urllib3/urllib3" 19COPYRIGHT="2008-2018 Andrey Petrov and contributors" 20LICENSE="MIT" 21REVISION="3" 22SOURCE_URI="https://github.com/shazow/urllib3/archive/$portVersion.tar.gz" 23CHECKSUM_SHA256="c7356205ca6c14df2f35d1d9cf18cd8a1981185b7dca13e1c3af91a214037c9d" 24SOURCE_FILENAME="urllib3-$portVersion.tar.gz" 25 26ARCHITECTURES="any" 27 28PROVIDES=" 29 $portName = $portVersion 30 " 31REQUIRES=" 32 haiku 33 " 34 35BUILD_REQUIRES=" 36 haiku_devel 37 " 38 39PYTHON_PACKAGES=(python39 python310) 40PYTHON_VERSIONS=(3.9 3.10) 41for i in "${!PYTHON_PACKAGES[@]}"; do 42pythonPackage=${PYTHON_PACKAGES[i]} 43pythonVersion=${PYTHON_VERSIONS[$i]} 44eval "PROVIDES_${pythonPackage}=\"\ 45 ${portName}_$pythonPackage = $portVersion\ 46 \"; \ 47REQUIRES_$pythonPackage=\"\ 48 haiku\n\ 49 cmd:python$pythonVersion\ 50 \"" 51BUILD_REQUIRES="$BUILD_REQUIRES 52 setuptools_$pythonPackage" 53BUILD_PREREQUIRES="$BUILD_PREREQUIRES 54 cmd:python$pythonVersion" 55done 56 57INSTALL() 58{ 59 for i in "${!PYTHON_PACKAGES[@]}"; do 60 pythonPackage=${PYTHON_PACKAGES[i]} 61 pythonVersion=${PYTHON_VERSIONS[$i]} 62 63 python=python$pythonVersion 64 installLocation="$prefix"/lib/$python/vendor-packages/ 65 export PYTHONPATH=$installLocation:$PYTHONPATH 66 mkdir -p "$installLocation" 67 rm -rf build 68 $python setup.py build install \ 69 --root=/ --prefix="$prefix" 70 71 install -m 755 -d "$docDir" 72 install -m 644 -t "$docDir" README.rst 73 74 packageEntries $pythonPackage \ 75 "$prefix"/lib/$python \ 76 "$docDir" 77 done 78} 79