xfce-base removal
[dweezil.git] / dev-python / requests / requests-2.18.4.ebuild
1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3
4 EAPI=6
5
6 PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
7 PYTHON_REQ_USE="threads(+)"
8
9 inherit distutils-r1
10
11 DESCRIPTION="HTTP library for human beings"
12 HOMEPAGE="http://python-requests.org/"
13 SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
14
15 LICENSE="Apache-2.0"
16 SLOT="0"
17 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x64-solaris"
18 IUSE="socks5 +ssl test"
19
20 RDEPEND="
21         >=dev-python/certifi-2017.4.17[${PYTHON_USEDEP}]
22         >=dev-python/chardet-3.0.2[${PYTHON_USEDEP}]
23         >=dev-python/idna-2.5[${PYTHON_USEDEP}]
24         <dev-python/idna-2.7[${PYTHON_USEDEP}]
25         >=dev-python/urllib3-1.21.1[${PYTHON_USEDEP}]
26         socks5? ( >=dev-python/PySocks-1.5.6[${PYTHON_USEDEP}] )
27         ssl? (
28                  >=dev-python/cryptography-1.3.4[${PYTHON_USEDEP}]
29                  >=dev-python/pyopenssl-0.14[$(python_gen_usedep 'python*' pypy)]
30         )
31 "
32
33 DEPEND="${RDEPEND}
34         dev-python/setuptools[${PYTHON_USEDEP}]
35 "
36 # tests connect to various remote sites
37 RESTRICT="test"
38 #       test? (
39 #               dev-python/pytest[${PYTHON_USEDEP}]
40 #               dev-python/pytest-httpbin[${PYTHON_USEDEP}]
41 #               dev-python/pytest-mock[${PYTHON_USEDEP}]
42 #               dev-python/pytest-xdist[${PYTHON_USEDEP}]
43 #       )
44
45 python_test() {
46         py.test -v --boxed || die
47 }