about summary refs log tree commit diff
path: root/pkgs/development/python-modules/slixmpp/hardcode-gnupg-path.patch
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-01-13 15:24:24 +0100
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-01-13 15:29:21 +0100
commit6c909de29a98ab205fd4b55fc5582255895c17c9 (patch)
treefeead90b6deec92b395cf469bd793b0342de235a /pkgs/development/python-modules/slixmpp/hardcode-gnupg-path.patch
parent3197cd5d639da20045a31a7e8fbb476723deeb2c (diff)
python3.pkgs.slixmpp: fix build
Also hardcode path to gnupg and correctly run tests.
Diffstat (limited to 'pkgs/development/python-modules/slixmpp/hardcode-gnupg-path.patch')
-rw-r--r--pkgs/development/python-modules/slixmpp/hardcode-gnupg-path.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/slixmpp/hardcode-gnupg-path.patch b/pkgs/development/python-modules/slixmpp/hardcode-gnupg-path.patch
new file mode 100644
index 0000000000000..4bb3b7c73490c
--- /dev/null
+++ b/pkgs/development/python-modules/slixmpp/hardcode-gnupg-path.patch
@@ -0,0 +1,26 @@
+diff --git a/slixmpp/plugins/xep_0027/gpg.py b/slixmpp/plugins/xep_0027/gpg.py
+index a0b1df4..7cfb3bd 100644
+--- a/slixmpp/plugins/xep_0027/gpg.py
++++ b/slixmpp/plugins/xep_0027/gpg.py
+@@ -41,7 +41,7 @@ class XEP_0027(BasePlugin):
+     dependencies = set()
+     stanza = stanza
+     default_config = {
+-        'gpg_binary': 'gpg',
++        'gpg_binary': '@gnupg@/bin/gpg',
+         'gpg_home': '',
+         'use_agent': True,
+         'keyring': None,
+diff --git a/slixmpp/thirdparty/gnupg.py b/slixmpp/thirdparty/gnupg.py
+index a89289f..46dd9b7 100644
+--- a/slixmpp/thirdparty/gnupg.py
++++ b/slixmpp/thirdparty/gnupg.py
+@@ -468,7 +468,7 @@ class GPG(object):
+     }
+ 
+     "Encapsulate access to the gpg executable"
+-    def __init__(self, gpgbinary='gpg', gnupghome=None, verbose=False,
++    def __init__(self, gpgbinary='@gnupg@/bin/gpg', gnupghome=None, verbose=False,
+                  use_agent=False, keyring=None):
+         """Initialize a GPG process wrapper.  Options are:
+