Unverified Commit a6e35308 authored by Wael M. Nasreddine's avatar Wael M. Nasreddine
Browse files

libagent: hardcode the path to gpgconf

parent 8d38e239
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
, cryptography
, ed25519
, ecdsa
, gnupg
, semver
, mnemonic
, unidecode
@@ -30,6 +31,12 @@ 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'"
  '';

  propagatedBuildInputs = [
    unidecode
    backports-shutil-which