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/Manifest6
-rw-r--r--dev-python/python-gnupg/files/python-gnupg-0.3.6-skip-search-keys-tests.patch20
-rw-r--r--dev-python/python-gnupg/metadata.xml13
-rw-r--r--dev-python/python-gnupg/python-gnupg-0.3.8-r1.ebuild26
4 files changed, 65 insertions, 0 deletions
diff --git a/dev-python/python-gnupg/Manifest b/dev-python/python-gnupg/Manifest
new file mode 100644
index 000000000000..b492521cb0af
--- /dev/null
+++ b/dev-python/python-gnupg/Manifest
@@ -0,0 +1,6 @@
+AUX python-gnupg-0.3.6-skip-search-keys-tests.patch 731 SHA256 b7bbbbe0f043c42a2ccc3bdd33aecd9b1c368f745e2ac38783785784d11668aa SHA512 6e5ddce9865f57185713b836ec00aa479456343950d4a40edacf23ce88f155c9f73070684211bdf9cc8cb4c379ec12eea6589a0b9995ac9085ec2a7d6b8ed35f WHIRLPOOL de007a6377a8d8c75af60c5d8b689c7fc7da2fa6058e65a58475a31dc8557c126d17accb220126b96be35432521224bde76366546ce58d2afbda23bb43cfe456
+DIST python-gnupg-0.3.8.tar.gz 38993 SHA256 3872ced77d69203f31817107b324b0dd33d4437a330dc58eca140c8758d26b5a SHA512 128ba1f89e8baf0d1ae53153d7cbe73bfc99617a1aadfd9a02e2e2e2c5f0bb9c7482023bf54f32989e92cc14a9eb32325e4c358c63bce48a70a78d068103ed4f WHIRLPOOL 9080ceeade7e4c614a532eccbd4e9818d62233a6d1751acb159e8e0f13c71edf177d2c1592f0685c7e4139ba59826b8cb13864c11c37e33445a176c693d84f52
+EBUILD python-gnupg-0.3.8-r1.ebuild 673 SHA256 96c99420ad6a67bfe434b273b25c1f0953e7c58ab0c82d24716a72950c781c58 SHA512 da68b9d882b89f6ce71bcda2b4e939579d4c4c82e02839fbbf4d14a152a8efc84d635c2aa7a2aef1b609f2f0dccdf3d77dfe9d7a6688af5944e9bf5a627235dc WHIRLPOOL 21a334965629e790b9763ff63afcee6a26e7253ddcd37ac6f4230fde7ea6b3b4c3e6ccae25a7f206e1f58bf3d20fce6193b4f3c5a9c35bcad02c732190174d07
+MISC ChangeLog 3703 SHA256 79f36321526b4b49cd2a10dde31ae4f718345ff8caee6e972f0c329d9dd5391f SHA512 0afa2ab7f86e8af56089b19468df5f556551dfdb4b10be9f1c541d218846e72fedc19232818f48a8ea2b0f2219abbe26b7b7e7f3a752a190fda037ce8296a084 WHIRLPOOL d08beefc5d582d32918665ef44d0c1d0eeabdf59e0fa3e615a0ca67227cdcbdd99018e0e27caceb8abeeaa89600db3db2263859f3b843a9f6bb5d086d84705e3
+MISC ChangeLog-2015 2425 SHA256 f8ce1daba6a76f1977d5459e99ed958a2d52065aa3b5d8d955726fa8415aefb9 SHA512 ab937456a51cabe1e7199943cb11fd39b5c21e01bf7787ad94ada4daec6a798d34a7be896d0b080663b78d0936ac7351c235b61882d660f0b7d7400f36b72a11 WHIRLPOOL ad0a454a206be237615bb1eaea9b3802c51a9279979dd4cdcb938cd08d810962aae527032e3b8ca8b4d75a123fbd69c43467b401e17086d3eb71917910d0bb1a
+MISC metadata.xml 445 SHA256 571ad6639250e4f49be02dd9d9940a1c23ed347e52f2438a945f32d6cb413ba6 SHA512 4f934dd056cef7f43b98985a52a42ba152c891890f360eb2942167f2ee69ef7fb03476bfde87be8e4e8c178fb7db429d23c695f81dc5d4c3fc266d3a84e827f8 WHIRLPOOL 9355d1a26fbbadf22e87fd6b4b9ae6200f43d87e8178bc3c796ea1e5e833bb00f49d7ba9fac1d14094fd8385704b74d6ed8fa6de42a54ba801cd680a23718a7d
diff --git a/dev-python/python-gnupg/files/python-gnupg-0.3.6-skip-search-keys-tests.patch b/dev-python/python-gnupg/files/python-gnupg-0.3.6-skip-search-keys-tests.patch
new file mode 100644
index 000000000000..66512ab08169
--- /dev/null
+++ b/dev-python/python-gnupg/files/python-gnupg-0.3.6-skip-search-keys-tests.patch
@@ -0,0 +1,20 @@
+--- python-gnupg-0.3.6/gnupg.py
++++ python-gnupg-0.3.6/gnupg.py
+@@ -1078,6 +1078,7 @@
+ def search_keys(self, query, keyserver='pgp.mit.edu'):
+ """ search keyserver by query (using --search-keys option)
+
++ # doctest: +SKIP
+ >>> import shutil
+ >>> shutil.rmtree('keys')
+ >>> gpg = GPG(gnupghome='keys')
+--- python-gnupg-0.3.6/test_gnupg.py
++++ python-gnupg-0.3.6/test_gnupg.py
+@@ -493,6 +493,7 @@
+ os.remove(fn)
+ logger.debug("test_file_encryption_and_decryption ends")
+
++ @unittest.skip("requires network access")
+ def test_search_keys(self):
+ "Test that searching for keys works"
+ r = self.gpg.search_keys('<vinay_sajip@hotmail.com>')
diff --git a/dev-python/python-gnupg/metadata.xml b/dev-python/python-gnupg/metadata.xml
new file mode 100644
index 000000000000..454368d9c474
--- /dev/null
+++ b/dev-python/python-gnupg/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">python-gnupg</remote-id>
+ <remote-id type="github">vsajip/python-gnupg</remote-id>
+ <remote-id type="pypi">python-gnupg</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/python-gnupg/python-gnupg-0.3.8-r1.ebuild b/dev-python/python-gnupg/python-gnupg-0.3.8-r1.ebuild
new file mode 100644
index 000000000000..f10324007a69
--- /dev/null
+++ b/dev-python/python-gnupg/python-gnupg-0.3.8-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="Python wrapper for GNU Privacy Guard"
+HOMEPAGE="http://pythonhosted.org/python-gnupg/ https://github.com/vsajip/python-gnupg/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+
+RDEPEND="app-crypt/gnupg"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.3.6-skip-search-keys-tests.patch )
+
+python_test() {
+ # Note; 1 test fails under pypy only
+ "${PYTHON}" test_gnupg.py || die "Tests fail with ${EPYTHON}"
+}