1 |
commit: d228931d62ee2cd5fc3bcf2c4148277bb50981e9 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 5 11:14:22 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 5 11:14:22 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d228931d |
7 |
|
8 |
dev-python/kafka-python: Correct test dependencies |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/kafka-python/kafka-python-1.4.7.ebuild | 15 +++++---------- |
13 |
1 file changed, 5 insertions(+), 10 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/kafka-python/kafka-python-1.4.7.ebuild b/dev-python/kafka-python/kafka-python-1.4.7.ebuild |
16 |
index 36adc8405d2..0a7e9046e9d 100644 |
17 |
--- a/dev-python/kafka-python/kafka-python-1.4.7.ebuild |
18 |
+++ b/dev-python/kafka-python/kafka-python-1.4.7.ebuild |
19 |
@@ -1,9 +1,9 @@ |
20 |
# Copyright 1999-2021 Gentoo Authors |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
|
23 |
-EAPI=7 |
24 |
-PYTHON_COMPAT=( python3_{7..9} ) |
25 |
+EAPI=8 |
26 |
|
27 |
+PYTHON_COMPAT=( python3_{8..9} ) |
28 |
inherit distutils-r1 |
29 |
|
30 |
DESCRIPTION="Kafka protocol support in Python" |
31 |
@@ -13,17 +13,12 @@ SRC_URI="https://github.com/dpkp/kafka-python/archive/${PV}.tar.gz -> ${P}.tar.g |
32 |
LICENSE="Apache-2.0" |
33 |
KEYWORDS="~amd64 ~x86" |
34 |
SLOT="0" |
35 |
-IUSE="snappy test" |
36 |
-RESTRICT="!test? ( test )" |
37 |
+IUSE="snappy" |
38 |
|
39 |
RDEPEND="snappy? ( dev-python/snappy[${PYTHON_USEDEP}] )" |
40 |
BDEPEND=" |
41 |
test? ( |
42 |
- ${RDEPEND} |
43 |
- dev-python/mock[${PYTHON_USEDEP}] |
44 |
- dev-python/unittest2[${PYTHON_USEDEP}] |
45 |
+ dev-python/pytest-mock[${PYTHON_USEDEP}] |
46 |
)" |
47 |
|
48 |
-python_test() { |
49 |
- unit2 -v || die "tests failed with ${EPYTHON}" |
50 |
-} |
51 |
+distutils_enable_tests pytest |