aports/testing/anki/strip-formatter-deps.patch
Frank Oltmanns d083797bd9 testing/anki: new aport
Anki has been dropped from aports in January 2023:
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/43109

The reason for dropping the package was that the build system was
complicated and a flatpak is available.

Re-introduce the package, because building it has become a lot easier
and an up-to-date flatpak is only available for x86_64.
2023-12-22 13:36:26 +00:00

9 lines
491 B
Diff

Remove dependency on dev-python/black used to format the generated hooks.py
file as it's not relevant in a packaging use case.
--- a/pylib/tools/hookslib.py
+++ b/pylib/tools/hookslib.py
@@ -208,4 +208,3 @@ def write_file(path: str, hooks: list[Hook], prefix: str, suffix: str):
os.environ["USERPROFILE"] = os.environ["HOME"]
with open(path, "wb") as file:
file.write(code.encode("utf8"))
- subprocess.run([sys.executable, "-m", "black", "-q", path], check=True)