2014-12-07 18:19:26 +00:00
|
|
|
SUMMARY="HTTP library for human beings"
|
|
|
|
DESCRIPTION="
|
|
|
|
Requests is an Apache2 Licensed HTTP library, written in Python, \
|
2016-02-26 15:33:51 +00:00
|
|
|
for human beings."
|
2016-03-05 19:19:01 +00:00
|
|
|
HOMEPAGE="http://python-requests.org/
|
|
|
|
http://pypi.python.org/pypi/requests"
|
2014-12-07 18:19:26 +00:00
|
|
|
COPYRIGHT="2010 Yesudeep Mangalapilly"
|
2016-02-17 19:26:37 +00:00
|
|
|
LICENSE="MIT"
|
2021-01-26 21:17:29 +00:00
|
|
|
REVISION="5"
|
dev-python: merge most python2 and python3 recipes.
* adjust recipes depending on these, ie python_dateutil=>dateutil_python.
* switch architectures to any for relevant python recipes.
* bump versions for retext, argh, beautifulsoup, cssselect, dateutil,
docutils, fonttools, html2text, httplib2, lxml, mechanize, mock, paramiko,
pillow, pip, pygments, requests, twisted, urllib3, zope_interface.
2017-04-16 21:10:32 +00:00
|
|
|
SOURCE_URI="https://pypi.python.org/packages/source/p/pathtools/pathtools-$portVersion.tar.gz"
|
2016-02-17 19:26:37 +00:00
|
|
|
CHECKSUM_SHA256="7c35c5421a39bb82e58018febd90e3b6e5db34c5443aaaf742b3f33d4655f1c0"
|
2014-12-07 18:19:26 +00:00
|
|
|
|
dev-python: merge most python2 and python3 recipes.
* adjust recipes depending on these, ie python_dateutil=>dateutil_python.
* switch architectures to any for relevant python recipes.
* bump versions for retext, argh, beautifulsoup, cssselect, dateutil,
docutils, fonttools, html2text, httplib2, lxml, mechanize, mock, paramiko,
pillow, pip, pygments, requests, twisted, urllib3, zope_interface.
2017-04-16 21:10:32 +00:00
|
|
|
ARCHITECTURES="any"
|
2014-12-07 18:19:26 +00:00
|
|
|
|
|
|
|
PROVIDES="
|
dev-python: merge most python2 and python3 recipes.
* adjust recipes depending on these, ie python_dateutil=>dateutil_python.
* switch architectures to any for relevant python recipes.
* bump versions for retext, argh, beautifulsoup, cssselect, dateutil,
docutils, fonttools, html2text, httplib2, lxml, mechanize, mock, paramiko,
pillow, pip, pygments, requests, twisted, urllib3, zope_interface.
2017-04-16 21:10:32 +00:00
|
|
|
$portName = $portVersion
|
2014-12-07 18:19:26 +00:00
|
|
|
"
|
|
|
|
REQUIRES="
|
2014-12-14 22:08:52 +00:00
|
|
|
haiku
|
2014-12-07 18:19:26 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
BUILD_REQUIRES="
|
2014-12-14 22:08:52 +00:00
|
|
|
haiku_devel
|
2014-12-07 18:19:26 +00:00
|
|
|
"
|
|
|
|
|
2021-01-26 21:17:29 +00:00
|
|
|
PYTHON_PACKAGES=(python python3 python38 python39)
|
|
|
|
PYTHON_VERSIONS=(2.7 3.7 3.8 3.9)
|
dev-python: merge most python2 and python3 recipes.
* adjust recipes depending on these, ie python_dateutil=>dateutil_python.
* switch architectures to any for relevant python recipes.
* bump versions for retext, argh, beautifulsoup, cssselect, dateutil,
docutils, fonttools, html2text, httplib2, lxml, mechanize, mock, paramiko,
pillow, pip, pygments, requests, twisted, urllib3, zope_interface.
2017-04-16 21:10:32 +00:00
|
|
|
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
|
2014-12-07 18:19:26 +00:00
|
|
|
|
|
|
|
INSTALL()
|
|
|
|
{
|
dev-python: merge most python2 and python3 recipes.
* adjust recipes depending on these, ie python_dateutil=>dateutil_python.
* switch architectures to any for relevant python recipes.
* bump versions for retext, argh, beautifulsoup, cssselect, dateutil,
docutils, fonttools, html2text, httplib2, lxml, mechanize, mock, paramiko,
pillow, pip, pygments, requests, twisted, urllib3, zope_interface.
2017-04-16 21:10:32 +00:00
|
|
|
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
|
2014-12-07 18:19:26 +00:00
|
|
|
|
dev-python: merge most python2 and python3 recipes.
* adjust recipes depending on these, ie python_dateutil=>dateutil_python.
* switch architectures to any for relevant python recipes.
* bump versions for retext, argh, beautifulsoup, cssselect, dateutil,
docutils, fonttools, html2text, httplib2, lxml, mechanize, mock, paramiko,
pillow, pip, pygments, requests, twisted, urllib3, zope_interface.
2017-04-16 21:10:32 +00:00
|
|
|
packageEntries $pythonPackage \
|
|
|
|
$prefix/lib/python*
|
|
|
|
done
|
2014-12-07 18:19:26 +00:00
|
|
|
}
|