blob: 939abf5f2e5ed7cc5894e98a31ca510186260f67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/urllib3/urllib3-1.5.ebuild,v 1.1 2012/08/19 03:03:11 floppym Exp $
EAPI=4
PYTHON_DEPEND="*:2.6"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="2.5"
DISTUTILS_SRC_TEST="nosetests"
PYTHON_TESTS_RESTRICTED_ABIS="2.6 3.1"
inherit distutils
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 ~x86"
IUSE="doc test"
RDEPEND="dev-python/six"
DEPEND="${RDEPEND}
test? ( www-servers/tornado )"
src_prepare() {
# Replace bundled copy of dev-python/six
cat > urllib3/packages/six.py <<-EOF
from __future__ import absolute_import
from six import *
EOF
sed -i -e "s/'dummyserver',//" setup.py || die
distutils_src_prepare
}
|