hermit
hermit copied to clipboard
Feature Request: Support zipapp applications
Now that we have python working via hermit, it should be easy to support zipapp stand alone applications. (Reference). This just requires needing python available on the system.
I think something like this should work.
description = "Pre-commit is a multi-language package manager for pre-commit hooks."
binaries = ["pre-commit"]
test = "pre-commit --version"
source = "https://github.com/pre-commit/pre-commit/releases/download/v${version}/pre-commit-${version}.pyz"
strip = 1
runtime-dependencies = ["[email protected]"]
provides=["pre-commit"]
on unpack {
rename { from = "${root}/pre-commit-${version}.pyz" to = "${root}/pre-commit" }
chmod { file = "${root}/pre-commit" mode = 0700 }
}
version "2.17.0" {
auto-version {
github-release = "pre-commit/pre-commit"
}
}
However currently hermit wants to unpack the file, but this isn't needed and throws an error.
fatal:hermit: don't know how to extract archive....