1 |
commit: 6652946eb6859d42afece08dc16c1f94317be9d6 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 1 06:13:21 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 1 06:31:47 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6652946e |
7 |
|
8 |
dev-python/krb5: recythonise for Python 3.11 support |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-python/krb5/krb5-0.3.0-r1.ebuild | 34 ++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 34 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/krb5/krb5-0.3.0-r1.ebuild b/dev-python/krb5/krb5-0.3.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..235f1e541e46 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/krb5/krb5-0.3.0-r1.ebuild |
20 |
@@ -0,0 +1,34 @@ |
21 |
+# Copyright 2021-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..11} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Kerberos API bindings for Python" |
32 |
+HOMEPAGE="https://pypi.org/project/krb5/ https://github.com/jborean93/pykrb5" |
33 |
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="MIT" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ virtual/krb5 |
41 |
+" |
42 |
+BDEPEND=" |
43 |
+ dev-python/cython[${PYTHON_USEDEP}] |
44 |
+ test? ( dev-python/k5test[${PYTHON_USEDEP}] ) |
45 |
+" |
46 |
+ |
47 |
+distutils_enable_tests pytest |
48 |
+ |
49 |
+src_configure() { |
50 |
+ # Needed for Python 3.11, can drop in next release (after 0.3.0) |
51 |
+ cd src/krb5 || die |
52 |
+ rm _*.c || die |
53 |
+ cythonize -f -3 *.pyx || die |
54 |
+} |