1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00
nixpkgs/pkgs/development/python-modules/slixmpp/hardcode-gnupg-path.patch
Robert Schütz 6c909de29a python3.pkgs.slixmpp: fix build
Also hardcode path to gnupg and correctly run tests.
2019-01-13 15:29:21 +01:00

27 lines
986 B
Diff

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: