nixpkgs/pkgs/tools/networking/maubot/allow-building-plugins-from-nix-store.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
582 B
Diff
Raw Normal View History

2023-02-28 15:04:09 +00:00
diff --git a/maubot/cli/commands/build.py b/maubot/cli/commands/build.py
index ec3ac26..4de85f2 100644
--- a/maubot/cli/commands/build.py
+++ b/maubot/cli/commands/build.py
@@ -84,7 +84,7 @@ def read_output_path(output: str, meta: PluginMeta) -> str | None:
def write_plugin(meta: PluginMeta, output: str | IO) -> None:
- with zipfile.ZipFile(output, "w") as zip:
+ with zipfile.ZipFile(output, "w", strict_timestamps=False) as zip:
meta_dump = BytesIO()
yaml.dump(meta.serialize(), meta_dump)
zip.writestr("maubot.yaml", meta_dump.getvalue())