offlineimap: remove dependency on python2 (#2909) (#2951)

This commit is contained in:
Markus Scherer 2022-05-10 09:30:40 +02:00 committed by GitHub
parent 882bd8118b
commit 4293902b64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,13 +158,13 @@ in {
xdg.configFile."offlineimap/get_settings.py".text = cfg.pythonFile; xdg.configFile."offlineimap/get_settings.py".text = cfg.pythonFile;
xdg.configFile."offlineimap/get_settings.pyc".source = "${ xdg.configFile."offlineimap/get_settings.pyc".source = "${
pkgs.runCommandLocal "get_settings-compile" { pkgs.runCommandLocal "get_settings-compile" {
nativeBuildInputs = [ pkgs.python2 ]; nativeBuildInputs = [ pkgs.offlineimap ];
pythonFile = cfg.pythonFile; pythonFile = cfg.pythonFile;
passAsFile = [ "pythonFile" ]; passAsFile = [ "pythonFile" ];
} '' } ''
mkdir -p $out/bin mkdir -p $out/bin
cp $pythonFilePath $out/bin/get_settings.py cp $pythonFilePath $out/bin/get_settings.py
python2 -m py_compile $out/bin/get_settings.py python -m py_compile $out/bin/get_settings.py
'' ''
}/bin/get_settings.pyc"; }/bin/get_settings.pyc";