homebrew-core/Formula/west.rb

82 lines
3.6 KiB
Ruby

class West < Formula
include Language::Python::Virtualenv
desc "Zephyr meta-tool"
homepage "https://github.com/zephyrproject-rtos/west"
url "https://files.pythonhosted.org/packages/ae/9c/16f4df520be759b8de1b35d6959fabb86ec81b44ba0300ec68d5d869f006/west-0.14.0.tar.gz"
sha256 "9a52a78565fd4d69c64b75c549f61b131892b1b6d26c1cc162cdead1a3cf4b8f"
license "Apache-2.0"
head "https://github.com/zephyrproject-rtos/west.git", branch: "main"
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_monterey: "2550d2c1a180ccab27ec18dfe9e1345ca0380ad28885723622b3a8108b1d99f4"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "4c5ea120a45253efb8fbb911443d2fecac4569bf181d959962c1c2ecbc2fa182"
sha256 cellar: :any_skip_relocation, monterey: "010a5dfaf53a0a2eb6a31894dd7f3e3ed01bf239a342103f0804ce0819a9277d"
sha256 cellar: :any_skip_relocation, big_sur: "485bf8ffc4134af7fe7d67d81e390ba4db2d4a9f2209260431cda4e0dec741a0"
sha256 cellar: :any_skip_relocation, catalina: "f60e0bfb507f154fad15b6c626a5e04e0bd801d006faffb052c651645bb15ef4"
sha256 cellar: :any_skip_relocation, x86_64_linux: "4e719f9b52c3eb8cb77bf76a82a5d0d0ab877f00f59f85d9ac72a14cbf00252e"
end
depends_on "python@3.10"
depends_on "pyyaml"
depends_on "six"
resource "colorama" do
url "https://files.pythonhosted.org/packages/2b/65/24d033a9325ce42ccbfa3ca2d0866c7e89cc68e5b9d92ecaba9feef631df/colorama-0.4.5.tar.gz"
sha256 "e6c6b4334fc50988a639d9b98aa429a0b57da6e17b9a44f0451f930b6967b7a4"
end
resource "docopt" do
url "https://files.pythonhosted.org/packages/a2/55/8f8cab2afd404cf578136ef2cc5dfb50baa1761b68c9da1fb1e4eed343c9/docopt-0.6.2.tar.gz"
sha256 "49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491"
end
resource "packaging" do
url "https://files.pythonhosted.org/packages/df/9e/d1a7217f69310c1db8fdf8ab396229f55a699ce34a203691794c5d1cad0c/packaging-21.3.tar.gz"
sha256 "dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb"
end
resource "pykwalify" do
url "https://files.pythonhosted.org/packages/d5/77/2d6849510dbfce5f74f1f69768763630ad0385ad7bb0a4f39b55de3920c7/pykwalify-1.8.0.tar.gz"
sha256 "796b2ad3ed4cb99b88308b533fb2f559c30fa6efb4fa9fda11347f483d245884"
end
resource "pyparsing" do
url "https://files.pythonhosted.org/packages/71/22/207523d16464c40a0310d2d4d8926daffa00ac1f5b1576170a32db749636/pyparsing-3.0.9.tar.gz"
sha256 "2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb"
end
resource "python-dateutil" do
url "https://files.pythonhosted.org/packages/4c/c4/13b4776ea2d76c115c1d1b84579f3764ee6d57204f6be27119f13a61d0a9/python-dateutil-2.8.2.tar.gz"
sha256 "0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"
end
resource "ruamel.yaml" do
url "https://files.pythonhosted.org/packages/46/a9/6ed24832095b692a8cecc323230ce2ec3480015fbfa4b79941bd41b23a3c/ruamel.yaml-0.17.21.tar.gz"
sha256 "8b7ce697a2f212752a35c1ac414471dc16c424c9573be4926b56ff3f5d23b7af"
end
resource "ruamel.yaml.clib" do
url "https://files.pythonhosted.org/packages/8b/25/08e5ad2431a028d0723ca5540b3af6a32f58f25e83c6dda4d0fcef7288a3/ruamel.yaml.clib-0.2.6.tar.gz"
sha256 "4ff604ce439abb20794f05613c374759ce10e3595d1867764dd1ae675b85acbd"
end
def install
virtualenv_install_with_resources
end
test do
mkdir testpath/"west" do
mkdir "test-project"
(testpath/"west/test-project/west.yml").write <<~EOS
manifest:
self:
path: test-project
EOS
system bin/"west", "init", "-l", testpath/"west/test-project"
assert_predicate testpath/"west/.west", :exist?
end
end
end