dev-python/python-gnupg: Bump to 0.5.6

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-01-01 04:41:15 +01:00
parent ba91f2334a
commit d7e5bb16c0
2 changed files with 55 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
DIST python-gnupg-0.5.5.tar.gz 66467 BLAKE2B a7c0ba9d146d10c35d90c3fe4de51599cdeee47411f8d39bdd2b7a3986aa3d638c2243bad0359ab0767a29e03421341fca9197590b8a478ed33c78969ae8f4bc SHA512 fd2012f644bb03566a9478256eb8df1024672a83fd94b3dada9ce47dcb56b71674aa7900e603ef487731d583c78fd677b56b56aac12c78d3594f893ba3fa53f5
DIST python-gnupg-0.5.5.tar.gz.asc 801 BLAKE2B 3995ab8ed912a12f8d333cd7a02ca29fc7195cf4b19fa3676d89c83961ee6a9d85d5b4ff79542a3e9f6a761414e7c6b64fcc97c69fb960fea48e66956193eeb8 SHA512 8a5cd5019a17dd34a8e48567736fa3282efb1e279a30d85c9e14a6862a7719ec15ea05349488cc45f604ad7e27223b143e30f9d1c91ac53d62fd8abf3d22ae53
DIST python_gnupg-0.5.6.tar.gz 66825 BLAKE2B c392a611e520b2622c13b2cd8207760b38eb2583ae3dd2b361e59c88086b810d1c13e4900dac4a9f3f951c57c360db3532b1a6492d2b852ba60dba03d6eeefc3 SHA512 45d6215bf9b1efa84b050645365bf673b3d538984415e53e28e0c3aaf393fef23482b2ac5947b68b51a33aa7b2c672e4367382d2ea3b4565be7d002b1662796e
DIST python_gnupg-0.5.6.tar.gz.asc 801 BLAKE2B aa65541f70c9d5e767ca661ec6b6c56cf7bae1e4474120b9b47f66f51b0dd27bc040e176916102f3205f548b61996daea39ae5eab012625220e2f850cb223125 SHA512 be2fc544f43ca6dc49c228263d3f23c1a9968a39e40c56644f9ef73b6eeda654b98060170e6fdf3fcef8e82266ec23d1c04060d67c65d3eb09aaff82d4781dde

View File

@@ -0,0 +1,53 @@
# Copyright 1999-2026 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 pypi 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/
"
# the download is the same as pypi sdist
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
)
"
# https://github.com/vsajip/python-gnupg/issues/272
S=${WORKDIR}/${P}
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[nls,reference]
app-alternatives/gpg[nls,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 network tests.
NO_EXTERNAL_TESTS=1 eunittest
}