1 |
commit: d08b2af5d8cd2f9d6afadeb01d9c2d57c7ef420a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 12 13:23:42 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 12 13:36:23 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d08b2af5 |
7 |
|
8 |
dev-python/automat: EAPI 8, PEP517 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/automat/automat-20.2.0-r1.ebuild | 54 +++++++++++++++++++++++++++++ |
13 |
1 file changed, 54 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/automat/automat-20.2.0-r1.ebuild b/dev-python/automat/automat-20.2.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..d7ad5e62e710 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/automat/automat-20.2.0-r1.ebuild |
20 |
@@ -0,0 +1,54 @@ |
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} pypy3 ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+MY_P=${P^} |
32 |
+DESCRIPTION="Self-service finite-state machines for the programmer on the go" |
33 |
+HOMEPAGE="https://github.com/glyph/automat https://pypi.org/project/Automat/" |
34 |
+SRC_URI="mirror://pypi/${MY_P::1}/${PN^}/${MY_P}.tar.gz" |
35 |
+S=${WORKDIR}/${MY_P} |
36 |
+ |
37 |
+LICENSE="MIT" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" |
40 |
+IUSE="examples" |
41 |
+ |
42 |
+RDEPEND=" |
43 |
+ >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] |
44 |
+ dev-python/six[${PYTHON_USEDEP}] |
45 |
+" |
46 |
+BDEPEND=" |
47 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
48 |
+" |
49 |
+ |
50 |
+PATCHES=( |
51 |
+ "${FILESDIR}/automat-0.8.0-no-setup-py-m2r-import.patch" |
52 |
+ "${FILESDIR}/test_visualize-twisted-import-errors.patch" |
53 |
+) |
54 |
+ |
55 |
+distutils_enable_tests pytest |
56 |
+ |
57 |
+EPYTEST_IGNORE=( |
58 |
+ benchmark |
59 |
+) |
60 |
+ |
61 |
+python_install_all() { |
62 |
+ if use examples; then |
63 |
+ docinto examples |
64 |
+ dodoc docs/examples/*.py |
65 |
+ fi |
66 |
+ |
67 |
+ distutils-r1_python_install_all |
68 |
+} |
69 |
+ |
70 |
+pkg_postinst() { |
71 |
+ einfo "For additional visualization functionality install both these optional dependencies" |
72 |
+ einfo " >=dev-python/twisted-16.1.1" |
73 |
+ einfo " media-gfx/graphviz[python]" |
74 |
+} |