summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-07-22 15:54:15 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2023-07-22 15:55:53 +0300
commite48ad96408bb9cb8002dfe60a50fa8853ceea791 (patch)
treeeab2abda5f397a4b2dc7d5187a382fba67533761 /dev-python/python-gnupg
parentdev-python/beartype: add 0.15.0 (diff)
downloadgentoo-e48ad96408bb9cb8002dfe60a50fa8853ceea791.tar.gz
gentoo-e48ad96408bb9cb8002dfe60a50fa8853ceea791.tar.bz2
gentoo-e48ad96408bb9cb8002dfe60a50fa8853ceea791.zip
dev-python/python-gnupg: add 0.5.1
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/python-gnupg')
-rw-r--r--dev-python/python-gnupg/Manifest2
-rw-r--r--dev-python/python-gnupg/python-gnupg-0.5.1.ebuild36
2 files changed, 38 insertions, 0 deletions
diff --git a/dev-python/python-gnupg/Manifest b/dev-python/python-gnupg/Manifest
index 20ba7a554e85..c4debf3a6aea 100644
--- a/dev-python/python-gnupg/Manifest
+++ b/dev-python/python-gnupg/Manifest
@@ -1,2 +1,4 @@
DIST python-gnupg-0.5.0.tar.gz 61154 BLAKE2B 0ae7e8ff669f51b47410a7a5aef16ca6792db18f28c59d3ce6615d0852eba1e201e3d000d1f644ffc1a362a74ee56c0930dd5814c23238137d6d8696319fd130 SHA512 cfd302257b53fdc9318004db7323ea5bf4bddc055b65b24386a1ecb27cd476fdf1bc771adcdde70a4eef442982a0c57dc832b92274bbe5ba16cbdf3247f4e77a
DIST python-gnupg-0.5.0.tar.gz.asc 801 BLAKE2B a3df8ea4c22c2df8351aeb51a670e36e2809eef2248507842b9580f819af5c4e5a7ad4902ef54f2a62c3629a2d658cac346cc1647838e8066b2a018939e1a751 SHA512 58fa1b201803bb542e3fb9c1c567d83abba0e897b52efa331942899684e15b4c44a225c28adce58c69c290d5059fc562556b79fec21f960c894b30a8f3642405
+DIST python-gnupg-0.5.1.tar.gz 64377 BLAKE2B bc17b2a21b44c2238ad528951ddcc43d4f607cace7bf9656329dfdba360090da5efe90425c0d3ff9e9d3c42655b996a3a5a31a1f90524457fe047ab46b272e27 SHA512 7be68c2f8aad0e0923fd27e53bbbfaea8fe7b3816ff231ab6a06a52efd3a4a594af27355abcf0a453e1d0556ad8c02e960ff7c84cb0ce7d053a1adc91131eea0
+DIST python-gnupg-0.5.1.tar.gz.asc 801 BLAKE2B a3b34af465d412a35f8450b5de287764c2b516de8dc989a0654d136e77123db533792faaef2f1f7a246d4bf02783e23c84cf76cf404def1282edffa2d25ec73a SHA512 ecf1fd69030ec6dff5d0ffbbcaa9112d7b2d5d1badb76257c6cdf674cbc579e8bd9837f8e30943aa23c316d121926c4aa5e2f0b865ed55a6ba661c4b2642fd30
diff --git a/dev-python/python-gnupg/python-gnupg-0.5.1.ebuild b/dev-python/python-gnupg/python-gnupg-0.5.1.ebuild
new file mode 100644
index 000000000000..24fb9d26c8d3
--- /dev/null
+++ b/dev-python/python-gnupg/python-gnupg-0.5.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/vinaysajip.asc
+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"
+SRC_URI+=" verify-sig? ( https://github.com/vsajip/python-gnupg/releases/download/${PV}/${P}.tar.gz.asc )"
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
+LICENSE="BSD"
+SLOT="0"
+
+# Need gnupg[nls] for avoiding decode errors and possible hangs
+# w/ e.g. sec-keys/openpgp-keys-gentoo-developers but other pkgs too.
+RDEPEND="app-crypt/gnupg[nls]"
+DEPEND="${RDEPEND}"
+BDEPEND="verify-sig? ( sec-keys/openpgp-keys-vinaysajip )"
+
+distutils_enable_tests unittest
+
+python_test() {
+ # NO_EXTERNAL_TESTS must be enabled,
+ # to disable all tests, which need internet access.
+ NO_EXTERNAL_TESTS=1 eunittest
+}