diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-01-29 22:20:28 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-01-29 22:28:11 +0100 |
commit | 19a5e157c2944eff56ed289e43b0cb2b0f5f3afc (patch) | |
tree | b70d6261ba1a723ae5d9e72d832eec1e7d26a4d0 /dev-python/pypam | |
parent | dev-util/bpftool: drop 5.14.14 (diff) | |
download | gentoo-19a5e157c2944eff56ed289e43b0cb2b0f5f3afc.tar.gz gentoo-19a5e157c2944eff56ed289e43b0cb2b0f5f3afc.tar.bz2 gentoo-19a5e157c2944eff56ed289e43b0cb2b0f5f3afc.zip |
dev-python/pypam: Switch to PEP 517 build
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pypam')
-rw-r--r-- | dev-python/pypam/pypam-0.5.0-r8.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-python/pypam/pypam-0.5.0-r8.ebuild b/dev-python/pypam/pypam-0.5.0-r8.ebuild new file mode 100644 index 000000000000..9d2b524b2b96 --- /dev/null +++ b/dev-python/pypam/pypam-0.5.0-r8.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +MY_P="PyPAM-${PV}" +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 + +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" +) + +python_test() { + "${EPYTHON}" tests/PamTest.py || die +} |