SUMMARY="HTTP library with thread-safe connection pooling, file post, and more" DESCRIPTION="- Re-use the same socket connection for multiple requests \ (HTTPConnectionPool and HTTPSConnectionPool) with optional client-side \ certificate verification. - File posting (encode_multipart_formdata). - Built-in redirection and retries (optional). - Supports gzip and deflate decoding. - Thread-safe and sanity-safe. - Works with AppEngine, gevent, and eventlib. - Tested on Python 2.6+, Python 3.2+, and PyPy, with 100% unit test coverage. - Small and easy to understand codebase perfect for extending and building \ upon. For a more comprehensive solution, have a look at \ Requests which is also powered by urllib3" HOMEPAGE="http://urllib3.readthedocs.org/ https://pypi.python.org/pypi/urllib3" COPYRIGHT="2008-2014 Andrey Petrov and contributors" LICENSE="MIT" REVISION="1" SOURCE_URI="https://github.com/shazow/urllib3/archive/$portVersion.tar.gz" CHECKSUM_SHA256="2bc87c7b9af197657f407afe016e50eb209238832b82e80a7b4d10899bf8fea0" SOURCE_DIR="urllib3-$portVersion" ARCHITECTURES="x86 x86_gcc2 x86_64" PROVIDES=" urllib3 = $portVersion " REQUIRES=" haiku cmd:python2 " BUILD_REQUIRES=" haiku_devel python_setuptools " BUILD_PREREQUIRES=" cmd:python2 cmd:gcc " BUILD() { $portPackageLinksDir/cmd~python2/bin/python2 setup.py build } INSTALL() { # GENERIC: all python_setuptools-based installs need this python=$portPackageLinksDir/cmd~python2/bin/python2 pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3) installLocation=$prefix/lib/python$pythonVersion/vendor-packages/ export PYTHONPATH=$installLocation:$PYTHONPATH mkdir -p $installLocation $python setup.py install \ --prefix=$prefix }