1 |
commit: eacde6b9cc6969fd6be86ec647d80e3e771e5184 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 8 12:48:04 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 8 12:52:53 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eacde6b9 |
7 |
|
8 |
dev-python/pychm: update EAPI 7 -> 8, pep517, enable py3.11 |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
11 |
|
12 |
dev-python/pychm/pychm-0.8.6-r1.ebuild | 29 +++++++++++++++++++++++++++++ |
13 |
1 file changed, 29 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/pychm/pychm-0.8.6-r1.ebuild b/dev-python/pychm/pychm-0.8.6-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..2f078383366b |
18 |
--- /dev/null |
19 |
+++ b/dev-python/pychm/pychm-0.8.6-r1.ebuild |
20 |
@@ -0,0 +1,29 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python3_{8..11} ) |
27 |
+DISTUTILS_USE_PEP517=setuptools |
28 |
+inherit distutils-r1 |
29 |
+ |
30 |
+DESCRIPTION="Python bindings for the chmlib library" |
31 |
+HOMEPAGE="https://github.com/dottedmag/pychm" |
32 |
+SRC_URI="https://github.com/dottedmag/pychm/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" |
33 |
+ |
34 |
+LICENSE="GPL-2+" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~arm ~ppc ~x86" |
37 |
+ |
38 |
+RDEPEND="dev-libs/chmlib" |
39 |
+DEPEND="${RDEPEND}" |
40 |
+ |
41 |
+distutils_enable_tests pytest |
42 |
+ |
43 |
+src_test() { |
44 |
+ # need to avoid relative import of 'chm' directory but tests rely |
45 |
+ # on locating files relatively via tests/... |
46 |
+ mv tests .. || die |
47 |
+ cd .. || die |
48 |
+ distutils-r1_src_test |
49 |
+} |