Skip to content

Commit f1eec24

Browse files
committed
fix: homebrew formula - install deps with pip_install_and_link
Fixes ModuleNotFoundError for typer and other dependencies
1 parent 9b4f8ca commit f1eec24

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Formula/ossguard.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ class Ossguard < Formula
33

44
desc "One CLI to guard any OSS project with OpenSSF security best practices"
55
homepage "https://github.com/kirankotari/ossguard"
6-
url "https://github.com/kirankotari/ossguard/archive/refs/tags/v0.1.0.tar.gz"
7-
sha256 "18e5378c90d643f39f7a42b17405880db0ef4f7d8db92234232ad5d24fa11096"
6+
url "https://files.pythonhosted.org/packages/d5/be/fa431736a8cae03d76146ad1e15aa31c5c5ccb0e0d584d221614ed705b7f/ossguard-0.1.0.tar.gz"
7+
sha256 "a2e3c687c3ecf92eac83443955a5fc638ea868ed45d18ded04bed02421d80a14"
88
license "Apache-2.0"
99

1010
depends_on "python@3.12"
1111

1212
def install
13-
virtualenv_install_with_resources
13+
venv = virtualenv_create(libexec, "python3.12")
14+
venv.pip_install_and_link buildpath
1415
end
1516

1617
test do

0 commit comments

Comments
 (0)