diff options
author | Tomáš Mózes <hydrapolic@gmail.com> | 2021-12-20 20:27:51 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-12-21 01:27:32 +0000 |
commit | 9f5615198ca1d3166eca3cb34d1124d5c705449f (patch) | |
tree | 7ee7c30073f4a8e077704b4db2f44ea977ce4fff /dev-python | |
parent | app-emulation/xen-tools: bump to 4.16.0 (diff) | |
download | gentoo-9f5615198ca1d3166eca3cb34d1124d5c705449f.tar.gz gentoo-9f5615198ca1d3166eca3cb34d1124d5c705449f.tar.bz2 gentoo-9f5615198ca1d3166eca3cb34d1124d5c705449f.zip |
dev-python/pypam: update to EAPI 8, add Python 3.10
Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pypam/pypam-0.5.0-r7.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/pypam/pypam-0.5.0-r7.ebuild b/dev-python/pypam/pypam-0.5.0-r7.ebuild new file mode 100644 index 000000000000..a7a3593a67d9 --- /dev/null +++ b/dev-python/pypam/pypam-0.5.0-r7.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_SETUPTOOLS=no +MY_P="PyPAM-${PV}" +PYTHON_COMPAT=( python3_{7..10} ) +inherit distutils-r1 flag-o-matic + +DESCRIPTION="Python Bindings for PAM (Pluggable Authentication Modules)" +HOMEPAGE="http://www.pangalactic.org/PyPAM" +SRC_URI="http://www.pangalactic.org/PyPAM/${MY_P}.tar.gz + https://distfiles.gentoo.org/distfiles/ad/PyPAM-0.5.0.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" +IUSE="" + +DEPEND=">=sys-libs/pam-0.64" +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS examples/pamtest.py ) + +PATCHES=( + # Pull patches from fedora. + "${FILESDIR}/PyPAM-${PV}-dealloc.patch" + "${FILESDIR}/PyPAM-${PV}-nofree.patch" + "${FILESDIR}/PyPAM-${PV}-memory-errors.patch" + "${FILESDIR}/PyPAM-${PV}-return-value.patch" + "${FILESDIR}/PyPAM-python3-support.patch" + # Fix a missing include. + "${FILESDIR}/${P}-stricter.patch" +) + +src_compile() { + append-cflags -fno-strict-aliasing + distutils-r1_src_compile +} + +python_test() { + "${PYTHON}" tests/PamTest.py || die +} |