1 |
commit: 0becc525bf4be56be8587b0ca907a5ad22ee3059 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 18 11:05:42 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 18 11:15:54 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0becc525 |
7 |
|
8 |
dev-python/betamax: update EAPI 7 -> 8 |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
11 |
|
12 |
dev-python/betamax/betamax-0.8.1-r1.ebuild | 38 ++++++++++++++++++++++++++++++ |
13 |
1 file changed, 38 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/betamax/betamax-0.8.1-r1.ebuild b/dev-python/betamax/betamax-0.8.1-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..9bfbc639f340 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/betamax/betamax-0.8.1-r1.ebuild |
20 |
@@ -0,0 +1,38 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
27 |
+DISTUTILS_USE_PEP517=setuptools |
28 |
+inherit distutils-r1 |
29 |
+ |
30 |
+DESCRIPTION="python-requests HTTP exchanges recorder" |
31 |
+HOMEPAGE="https://github.com/betamaxpy/betamax" |
32 |
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="Apache-2.0" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
37 |
+ |
38 |
+RDEPEND="dev-python/requests[${PYTHON_USEDEP}]" |
39 |
+ |
40 |
+PATCHES=( |
41 |
+ "${FILESDIR}/betamax-0.8.1-tests.patch" |
42 |
+) |
43 |
+ |
44 |
+distutils_enable_tests pytest |
45 |
+ |
46 |
+src_prepare() { |
47 |
+ rm tests/integration/test_hooks.py || die |
48 |
+ rm tests/integration/test_placeholders.py || die |
49 |
+ sed -e 's:test_records:_&:' \ |
50 |
+ -e 's:test_replaces:_&:' \ |
51 |
+ -e 's:test_replays:_&:' \ |
52 |
+ -e 's:test_creates:_&:' \ |
53 |
+ -i tests/integration/test_record_modes.py || die |
54 |
+ rm tests/integration/test_unicode.py || die |
55 |
+ rm tests/regression/test_gzip_compression.py || die |
56 |
+ rm tests/regression/test_requests_2_11_body_matcher.py || die |
57 |
+ distutils-r1_src_prepare |
58 |
+} |