1 |
commit: b4aedf952e88c8cf8f638eebe502b528448e5d5b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 26 17:19:47 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 17:21:37 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4aedf95 |
7 |
|
8 |
dev-python/graphviz: Migrate to PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/graphviz/graphviz-0.19.1-r1.ebuild | 42 +++++++++++++++++++++++++++ |
13 |
1 file changed, 42 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/graphviz/graphviz-0.19.1-r1.ebuild b/dev-python/graphviz/graphviz-0.19.1-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..2b0922565359 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/graphviz/graphviz-0.19.1-r1.ebuild |
20 |
@@ -0,0 +1,42 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( python3_{8..10} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Simple Python interface for Graphviz" |
32 |
+HOMEPAGE="https://graphviz.readthedocs.io/" |
33 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" |
34 |
+ |
35 |
+LICENSE="MIT" |
36 |
+KEYWORDS="~amd64 ~riscv ~x86 ~amd64-linux ~x86-linux" |
37 |
+SLOT="0" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ media-gfx/graphviz |
41 |
+" |
42 |
+BDEPEND=" |
43 |
+ app-arch/unzip |
44 |
+ test? ( |
45 |
+ >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] |
46 |
+ >=dev-python/pytest-mock-1.8[${PYTHON_USEDEP}] |
47 |
+ media-gfx/graphviz[gts,pdf] |
48 |
+ ) |
49 |
+" |
50 |
+ |
51 |
+distutils_enable_tests pytest |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ sed -e 's:--cov --cov-report=term --cov-report=html::' \ |
55 |
+ -i setup.cfg || die |
56 |
+ distutils-r1_src_prepare |
57 |
+} |
58 |
+ |
59 |
+python_test() { |
60 |
+ "${EPYTHON}" run-tests.py -vv -ra -l -Wdefault -p no:xdoctest || |
61 |
+ die "Tests failed with ${EPYTHON}" |
62 |
+} |