You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
46 lines
1.2 KiB
11 years ago
|
# Copyright 1999-2014 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/urllib3/urllib3-1.8.2.ebuild,v 1.2 2014/05/06 04:44:23 radhermit Exp $
|
||
|
|
||
|
EAPI=5
|
||
|
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3,3_4} pypy )
|
||
|
|
||
|
inherit distutils-r1
|
||
|
|
||
|
DESCRIPTION="HTTP library with thread-safe connection pooling, file post, and more"
|
||
|
HOMEPAGE="https://github.com/shazow/urllib3"
|
||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="MIT"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~arm ~x86"
|
||
|
IUSE="test"
|
||
|
|
||
|
RDEPEND="dev-python/six[${PYTHON_USEDEP}]
|
||
|
$(python_gen_cond_dep \
|
||
|
'dev-python/backports-ssl-match-hostname[${PYTHON_USEDEP}]' \
|
||
|
'python2*' pypy)"
|
||
|
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||
|
test? (
|
||
|
>=www-servers/tornado-2.4.1[${PYTHON_USEDEP}]
|
||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||
|
dev-python/nose[${PYTHON_USEDEP}]
|
||
|
)"
|
||
|
|
||
|
python_prepare_all() {
|
||
|
# Replace bundled copy of dev-python/six
|
||
|
cat > urllib3/packages/six.py <<-EOF
|
||
|
from __future__ import absolute_import
|
||
|
from six import *
|
||
|
EOF
|
||
|
|
||
|
sed -i "s/'dummyserver',//" setup.py || die
|
||
|
sed -i 's:cover-min-percentage = 100::' setup.cfg || die
|
||
|
|
||
|
distutils-r1_python_prepare_all
|
||
|
}
|
||
|
|
||
|
python_test() {
|
||
|
nosetests -v || die "Tests fail with ${EPYTHON}"
|
||
|
}
|