1 |
commit: 98f371584107e86f629f9ad4e5100017533b9dad |
2 |
Author: Donnie Berkholz <dberkholz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 28 18:20:47 2011 +0000 |
4 |
Commit: Donnie Berkholz <dberkholz <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 28 18:20:47 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/dberkholz.git;a=commit;h=98f37158 |
7 |
|
8 |
Add Requests, based on bug #380137. |
9 |
|
10 |
--- |
11 |
dev-python/requests/Manifest | 2 + |
12 |
dev-python/requests/requests-0.8.3.ebuild | 32 +++++++++++++++++++++++++++++ |
13 |
2 files changed, 34 insertions(+), 0 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/requests/Manifest b/dev-python/requests/Manifest |
16 |
new file mode 100644 |
17 |
index 0000000..4c125c4 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/requests/Manifest |
20 |
@@ -0,0 +1,2 @@ |
21 |
+DIST requests-0.8.3.tar.gz 51252 RMD160 7e931879303afc2caf2a92154750e061521ede8e SHA1 64cb104ae78bcf6b5ea84cc9389dcaf0b60628ac SHA256 7277ec1fc8b8251bc1ce628651cbfad886704a77aea9f6203dcc042a4f12d214 |
22 |
+EBUILD requests-0.8.3.ebuild 815 RMD160 76f47a6d3edce8e01f8e3480b545e269e47500a1 SHA1 3743e1675038bf3752e50ee59eae360bea9c0c5e SHA256 cc1f769071976ea6d34184cdc3f90c774eca91fb8bffffbca778bdfcc4d38932 |
23 |
|
24 |
diff --git a/dev-python/requests/requests-0.8.3.ebuild b/dev-python/requests/requests-0.8.3.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..03247e7 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/requests/requests-0.8.3.ebuild |
29 |
@@ -0,0 +1,32 @@ |
30 |
+# Copyright 1999-2011 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Header |
33 |
+ |
34 |
+EAPI="3" |
35 |
+PYTHON_DEPEND="2:2.5" |
36 |
+SUPPORT_PYTHON_ABIS="1" |
37 |
+RESTRICT_PYTHON_ABIS="3.*" |
38 |
+ |
39 |
+inherit distutils |
40 |
+ |
41 |
+DESCRIPTION="Requests is an ISC Licensed HTTP library, written in Python, for human beings." |
42 |
+HOMEPAGE="http://python-requests.org/ http://pypi.python.org/pypi/requests" |
43 |
+SRC_URI="https://github.com/kennethreitz/requests/tarball/v${PV} -> ${P}.tar.gz http://pypi.python.org/packages/source/r/requests/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="ISC" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~x86 ~amd64" |
48 |
+IUSE="" |
49 |
+ |
50 |
+RDEPEND="dev-libs/libevent |
51 |
+ dev-python/gevent" |
52 |
+DEPEND="${RDEPEND}" |
53 |
+ |
54 |
+PYTHON_MODNAME="requests" |
55 |
+ |
56 |
+src_test() { |
57 |
+ testing() { |
58 |
+ PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" test_requests.py |
59 |
+ } |
60 |
+ python_execute_function testing |
61 |
+} |