self: super: {
  khal = super.khal.overridePythonAttrs(old: {
    postPatch = ''
      sed -i "s/Invalid value for \"ics\"/Invalid value for \\\'ics\\\'/" tests/cli_test.py
      sed -i "s/Invalid value for \"\[ICS\]\"/Invalid value for \\\'[ICS]\\\'/" tests/cli_test.py
    '';
  });
}