1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 20:29:47 +01:00

offlineimap: Fix for OfflineIMAP 8 (#2479)

Nixpkgs switched to OfflineIMAP version 8 which means that Python 3 is
now used instead of Python 2. As a result, get_pass() now returns a
byte array instead of a string and the argument to get_pass() must be
a byte array too. See
https://github.com/OfflineIMAP/offlineimap3/issues/103.
This commit is contained in:
Damien Cassou 2021-11-16 18:31:01 +01:00 committed by GitHub
parent a7c5b00d44
commit 05a3116091
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ let
remotePassEval =
let arglist = concatMapStringsSep "," (x: "'${x}'") passwordCommand;
in optionalAttrs (passwordCommand != null) {
remotepasseval = ''get_pass("${name}", [${arglist}]).strip("\n")'';
remotepasseval = ''get_pass("${name}", [${arglist}]).strip(b"\n")'';
};
in toIni {
"Account ${name}" = {