1 |
commit: b6dcd687ef6f14dc85c0a6b34dd814d7943d96ff |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 1 14:50:51 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 1 15:44:01 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6dcd687 |
7 |
|
8 |
dev-python/statsd: Add missing test dep, py3.8, modernize |
9 |
|
10 |
Closes: https://bugs.gentoo.org/720096 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
dev-python/statsd/statsd-3.3.0.ebuild | 15 ++++----------- |
14 |
1 file changed, 4 insertions(+), 11 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/statsd/statsd-3.3.0.ebuild b/dev-python/statsd/statsd-3.3.0.ebuild |
17 |
index f92fe942f38..cd01b37d821 100644 |
18 |
--- a/dev-python/statsd/statsd-3.3.0.ebuild |
19 |
+++ b/dev-python/statsd/statsd-3.3.0.ebuild |
20 |
@@ -2,28 +2,21 @@ |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
|
23 |
EAPI=7 |
24 |
-PYTHON_COMPAT=( python3_{6,7} pypy3 ) |
25 |
+PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) |
26 |
|
27 |
inherit distutils-r1 |
28 |
|
29 |
DESCRIPTION="A simple statsd client" |
30 |
HOMEPAGE="https://github.com/jsocol/pystatsd https://pypi.org/project/statsd" |
31 |
- |
32 |
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
33 |
|
34 |
LICENSE="MIT" |
35 |
SLOT="0" |
36 |
KEYWORDS="amd64 ~arm64 x86 ~amd64-linux ~x86-linux" |
37 |
-IUSE="test" |
38 |
-RESTRICT="!test? ( test )" |
39 |
|
40 |
-RDEPEND="" |
41 |
-DEPEND="${RDEPEND} |
42 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
43 |
+BDEPEND=" |
44 |
test? ( |
45 |
- dev-python/nose[${PYTHON_USEDEP}] |
46 |
+ dev-python/mock[${PYTHON_USEDEP}] |
47 |
)" |
48 |
|
49 |
-python_test() { |
50 |
- nosetests --verbose || die |
51 |
-} |
52 |
+distutils_enable_tests nose |