/[gentoo-x86]/dev-python/requests/requests-2.6.0.ebuild
Gentoo

Contents of /dev-python/requests/requests-2.6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Apr 17 12:46:15 2015 UTC (5 years, 3 months ago) by ago
Branch: MAIN
Changes since 1.4: +2 -2 lines
Stable for ppc64, wrt bug #543480

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --include-arches="ppc64", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/requests/requests-2.6.0.ebuild,v 1.4 2015/04/17 07:20:22 ago Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 )
7
8 inherit distutils-r1
9
10 DESCRIPTION="HTTP library for human beings"
11 HOMEPAGE="http://python-requests.org/ http://pypi.python.org/pypi/requests"
12 SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
13
14 LICENSE="Apache-2.0"
15 SLOT="0"
16 KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ~ppc ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
17 IUSE=""
18
19 # bundles dev-python/urllib3 snapshot
20 RDEPEND="app-misc/ca-certificates
21 >=dev-python/chardet-2.2.1[${PYTHON_USEDEP}]"
22 DEPEND="${RDEPEND}
23 dev-python/setuptools[${PYTHON_USEDEP}]"
24
25 # tests connect to various remote sites
26 RESTRICT="test"
27
28 PATCHES=(
29 "${FILESDIR}"/${PN}-2.2.0-system-chardet.patch
30 "${FILESDIR}"/${PN}-2.5.0-system-cacerts.patch
31 )
32
33 python_prepare_all() {
34 # use system chardet
35 rm -r requests/packages/chardet || die
36
37 distutils-r1_python_prepare_all
38 }
39
40 python_test() {
41 "${PYTHON}" test_requests.py || die "Tests fail with ${EPYTHON}"
42 }

  ViewVC Help
Powered by ViewVC 1.1.20