1 |
commit: 19a5e157c2944eff56ed289e43b0cb2b0f5f3afc |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 29 21:20:28 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 29 21:28:11 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19a5e157 |
7 |
|
8 |
dev-python/pypam: Switch to PEP 517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pypam/pypam-0.5.0-r8.ebuild | 40 ++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 40 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/pypam/pypam-0.5.0-r8.ebuild b/dev-python/pypam/pypam-0.5.0-r8.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..9d2b524b2b96 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/pypam/pypam-0.5.0-r8.ebuild |
20 |
@@ -0,0 +1,40 @@ |
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 |
+MY_P="PyPAM-${PV}" |
28 |
+PYTHON_COMPAT=( python3_{8..10} ) |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Python Bindings for PAM (Pluggable Authentication Modules)" |
32 |
+HOMEPAGE="http://www.pangalactic.org/PyPAM" |
33 |
+SRC_URI="http://www.pangalactic.org/PyPAM/${MY_P}.tar.gz |
34 |
+ https://distfiles.gentoo.org/distfiles/ad/PyPAM-0.5.0.tar.gz" |
35 |
+S="${WORKDIR}/${MY_P}" |
36 |
+ |
37 |
+LICENSE="LGPL-2.1" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" |
40 |
+IUSE="" |
41 |
+ |
42 |
+DEPEND=">=sys-libs/pam-0.64" |
43 |
+RDEPEND="${DEPEND}" |
44 |
+ |
45 |
+DOCS=( AUTHORS examples/pamtest.py ) |
46 |
+ |
47 |
+PATCHES=( |
48 |
+ # Pull patches from fedora. |
49 |
+ "${FILESDIR}/PyPAM-${PV}-dealloc.patch" |
50 |
+ "${FILESDIR}/PyPAM-${PV}-nofree.patch" |
51 |
+ "${FILESDIR}/PyPAM-${PV}-memory-errors.patch" |
52 |
+ "${FILESDIR}/PyPAM-${PV}-return-value.patch" |
53 |
+ "${FILESDIR}/PyPAM-python3-support.patch" |
54 |
+ # Fix a missing include. |
55 |
+ "${FILESDIR}/${P}-stricter.patch" |
56 |
+) |
57 |
+ |
58 |
+python_test() { |
59 |
+ "${EPYTHON}" tests/PamTest.py || die |
60 |
+} |