1 |
commit: 531b96fb745d5474c3f0b87668f5c8526baf6922 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 27 09:23:33 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 27 09:30:20 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=531b96fb |
7 |
|
8 |
dev-python/httpretty: Add missing test deps |
9 |
|
10 |
Closes: https://bugs.gentoo.org/719766 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
dev-python/httpretty/httpretty-1.0.2-r1.ebuild | 46 ++++++++++++++++++++++++++ |
14 |
1 file changed, 46 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/httpretty/httpretty-1.0.2-r1.ebuild b/dev-python/httpretty/httpretty-1.0.2-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..eb33b6f3b1d |
19 |
--- /dev/null |
20 |
+++ b/dev-python/httpretty/httpretty-1.0.2-r1.ebuild |
21 |
@@ -0,0 +1,46 @@ |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="HTTP client mock for Python" |
32 |
+HOMEPAGE="https://github.com/gabrielfalcao/httpretty" |
33 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
34 |
+ |
35 |
+SLOT="0" |
36 |
+LICENSE="MIT" |
37 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
38 |
+IUSE="test" |
39 |
+RESTRICT="!test? ( test )" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ dev-python/urllib3[${PYTHON_USEDEP}]" |
43 |
+# redis skipped as it requires a redis server running |
44 |
+DEPEND=" |
45 |
+ test? ( |
46 |
+ dev-python/eventlet[${PYTHON_USEDEP}] |
47 |
+ dev-python/freezegun[${PYTHON_USEDEP}] |
48 |
+ dev-python/httplib2[${PYTHON_USEDEP}] |
49 |
+ >=dev-python/nose-1.2[${PYTHON_USEDEP}] |
50 |
+ dev-python/pyopenssl[${PYTHON_USEDEP}] |
51 |
+ >=dev-python/requests-1.1[${PYTHON_USEDEP}] |
52 |
+ dev-python/sure[${PYTHON_USEDEP}] |
53 |
+ >=www-servers/tornado-2.2[${PYTHON_USEDEP}] |
54 |
+)" |
55 |
+ |
56 |
+python_prepare_all() { |
57 |
+ # remove useless deps |
58 |
+ sed -i -e '/randomly/d' -e '/rednose/d' setup.cfg || die |
59 |
+ # tests requiring network access |
60 |
+ rm tests/functional/test_passthrough.py || die |
61 |
+ |
62 |
+ distutils-r1_python_prepare_all |
63 |
+} |
64 |
+ |
65 |
+python_test() { |
66 |
+ nosetests -v tests || die "Tests fail with ${EPYTHON}" |
67 |
+} |