3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #219211 from kalbasit/libagent-fix-gpgconf-path

This commit is contained in:
Wael Nasreddine 2023-03-02 20:15:01 -08:00 committed by GitHub
commit 0749042bfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,7 @@
, cryptography
, ed25519
, ecdsa
, gnupg
, semver
, mnemonic
, unidecode
@ -30,6 +31,13 @@ buildPythonPackage rec {
sha256 = "sha256-RISAy0efdatr9u4CWNRGnlffkC8ksw1NyRpJWKwqz+s=";
};
# hardcode the path to gpgconf in the libagent library
postPatch = ''
substituteInPlace libagent/gpg/keyring.py \
--replace "util.which('gpgconf')" "'${gnupg}/bin/gpgconf'" \
--replace "'gpg-connect-agent'" "'${gnupg}/bin/gpg-connect-agent'"
'';
propagatedBuildInputs = [
unidecode
backports-shutil-which