1 |
commit: 155cb064c89db765967169fa35bdab8a144bf83c |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 29 13:05:32 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 29 13:05:32 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=155cb064 |
7 |
|
8 |
dev-python/pydotplus: Fix test phase and add py3.9 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/719404 |
11 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
dev-python/pydotplus/pydotplus-2.0.2.ebuild | 17 +++++++---------- |
15 |
1 file changed, 7 insertions(+), 10 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/pydotplus/pydotplus-2.0.2.ebuild b/dev-python/pydotplus/pydotplus-2.0.2.ebuild |
18 |
index c8aa79de634..0c5a24a0433 100644 |
19 |
--- a/dev-python/pydotplus/pydotplus-2.0.2.ebuild |
20 |
+++ b/dev-python/pydotplus/pydotplus-2.0.2.ebuild |
21 |
@@ -3,7 +3,7 @@ |
22 |
|
23 |
EAPI=7 |
24 |
|
25 |
-PYTHON_COMPAT=( python3_{7,8} ) |
26 |
+PYTHON_COMPAT=( python3_{6..9} ) |
27 |
|
28 |
inherit distutils-r1 |
29 |
|
30 |
@@ -14,19 +14,16 @@ SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz" |
31 |
LICENSE="MIT" |
32 |
SLOT="0" |
33 |
KEYWORDS="~amd64 ~x86" |
34 |
-IUSE="test" |
35 |
-RESTRICT="!test? ( test )" |
36 |
|
37 |
RDEPEND=" |
38 |
dev-python/pyparsing[${PYTHON_USEDEP}] |
39 |
- media-gfx/graphviz |
40 |
-" |
41 |
-DEPEND="test? ( ${RDEPEND} )" |
42 |
+ media-gfx/graphviz" |
43 |
|
44 |
-PATCHES=( "${FILESDIR}/${P}-tests.patch" ) |
45 |
+distutils_enable_tests unittest |
46 |
+ |
47 |
+PATCHES=( "${FILESDIR}"/${P}-tests.patch ) |
48 |
|
49 |
python_test() { |
50 |
- pushd test > /dev/null || die |
51 |
- python pydot_unittest.py || die |
52 |
- popd > /dev/null || die |
53 |
+ cd test || die |
54 |
+ "${EPYTHON}" pydot_unittest.py || die |
55 |
} |