1 |
commit: 88e53eefa721ff2ef6864863fe90ecf4d7282ba1 |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 29 15:56:47 2022 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 29 15:57:13 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88e53eef |
7 |
|
8 |
dev-python/python-keyutils: fix build on python3_11+ |
9 |
|
10 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
11 |
|
12 |
.../python-keyutils/python-keyutils-0.6-r1.ebuild | 33 ++++++++++++++++++++++ |
13 |
1 file changed, 33 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/python-keyutils/python-keyutils-0.6-r1.ebuild b/dev-python/python-keyutils/python-keyutils-0.6-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..a06efcf70a05 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/python-keyutils/python-keyutils-0.6-r1.ebuild |
20 |
@@ -0,0 +1,33 @@ |
21 |
+# Copyright 2021-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python3_{9..11} ) |
27 |
+inherit distutils-r1 |
28 |
+ |
29 |
+DESCRIPTION="A set of python bindings for keyutils" |
30 |
+HOMEPAGE="https://github.com/sassoftware/python-keyutils/" |
31 |
+SRC_URI="https://github.com/sassoftware/python-keyutils/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" |
32 |
+ |
33 |
+LICENSE="Apache-2.0" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="amd64 ~arm x86" |
36 |
+ |
37 |
+BDEPEND="dev-python/cython[${PYTHON_USEDEP}]" |
38 |
+DEPEND="sys-apps/keyutils" |
39 |
+RDEPEND="${DEPEND}" |
40 |
+ |
41 |
+distutils_enable_tests pytest |
42 |
+ |
43 |
+src_prepare() { |
44 |
+ default |
45 |
+ sed -i -e '/pytest-runner/d' setup.py || die |
46 |
+ rm keyutils/_keyutils.c || die |
47 |
+} |
48 |
+ |
49 |
+python_test() { |
50 |
+ ln -s "${S}"/test "${BUILD_DIR}"/test || die |
51 |
+ cd "${BUILD_DIR}" || die |
52 |
+ distutils-r1_python_test |
53 |
+} |