summaryrefslogtreecommitdiff
path: root/dev-python/python-gnupg
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/python-gnupg')
-rw-r--r--dev-python/python-gnupg/Manifest2
-rw-r--r--dev-python/python-gnupg/metadata.xml18
-rw-r--r--dev-python/python-gnupg/python-gnupg-0.5.6.ebuild53
3 files changed, 73 insertions, 0 deletions
diff --git a/dev-python/python-gnupg/Manifest b/dev-python/python-gnupg/Manifest
new file mode 100644
index 000000000000..bf193696ab09
--- /dev/null
+++ b/dev-python/python-gnupg/Manifest
@@ -0,0 +1,2 @@
+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
diff --git a/dev-python/python-gnupg/metadata.xml b/dev-python/python-gnupg/metadata.xml
new file mode 100644
index 000000000000..0d7b1bbdf6ec
--- /dev/null
+++ b/dev-python/python-gnupg/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <stabilize-allarches />
+ <longdescription>
+ This project implements a Python library, which takes care of the internal details
+ and allows its users to generate and manage keys,
+ encrypt and decrypt data, and sign and verify messages.
+ </longdescription>
+ <upstream>
+ <remote-id type="cpe">cpe:/a:python:python-gnupg</remote-id>
+ </upstream>
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>
diff --git a/dev-python/python-gnupg/python-gnupg-0.5.6.ebuild b/dev-python/python-gnupg/python-gnupg-0.5.6.ebuild
new file mode 100644
index 000000000000..68af7e90d9a9
--- /dev/null
+++ b/dev-python/python-gnupg/python-gnupg-0.5.6.ebuild
@@ -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=( python3_{13..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
+}