gentoo/dev-python/python-gnupg/python-gnupg-0.5.5-r1.ebuild
Michał Górny 5a03e3d4fe
dev-python/python-gnupg: Revbump over RDEP change
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2025-11-01 08:29:24 +01:00

52 lines
1.2 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
inherit distutils-r1 verify-sig
DESCRIPTION="A Python wrapper for GnuPG"
HOMEPAGE="
https://docs.red-dove.com/python-gnupg/
https://github.com/vsajip/python-gnupg/
https://pypi.org/project/python-gnupg/
"
SRC_URI="
https://github.com/vsajip/python-gnupg/releases/download/${PV}/${P}.tar.gz
verify-sig? (
https://github.com/vsajip/python-gnupg/releases/download/${PV}/${P}.tar.gz.asc
)
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~sparc x86"
# Need gnupg[nls] for avoiding decode errors and possible hangs
# w/ e.g. sec-keys/openpgp-keys-gentoo-developers but other pkgs too.
DEPEND="
|| (
app-alternatives/gpg[reference]
app-alternatives/gpg[freepg(-)]
)
"
RDEPEND="
${DEPEND}
"
BDEPEND="
verify-sig? ( sec-keys/openpgp-keys-vinaysajip )
"
distutils_enable_tests unittest
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/vinaysajip.asc
python_test() {
# NO_EXTERNAL_TESTS must be enabled,
# to disable tests needing Internet access.
NO_EXTERNAL_TESTS=1 eunittest
}