homebrew-core/Formula/west.rb

85 lines
3.8 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/f4/6e/abf9f0bbfc9803b988ed2a98143480ba121cb5c55e799fab829c64fdff9f/west-0.13.1.tar.gz"
sha256 "07a07bb2167c14ce69c97cd792726ff66c2bf8446ae24884cd17f98cb4c289c3"
license "Apache-2.0"
head "https://github.com/zephyrproject-rtos/west.git", branch: "main"
bottle do
sha256 cellar: :any_skip_relocation, arm64_monterey: "aa10f9eeb85e32ce88a5ffd92efbb236b75a53549f898f153bbb4052cc566f7f"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "9b4911fbec3de339ba9a44d4440d14effc0c753f5e0e1624af425050e847d773"
sha256 cellar: :any_skip_relocation, monterey: "b71bfba3afcba91dcfc821520a0c4fa04fb180eccff67d390f241be7162459ed"
sha256 cellar: :any_skip_relocation, big_sur: "1ae1874f3470b82d37c078010decb9deb4c061af2d1fc9f3b7e0c1e26b267d82"
sha256 cellar: :any_skip_relocation, catalina: "8a31845ea2d2833656521764494844f4624e020f82a581fc2febdb0661228a60"
sha256 cellar: :any_skip_relocation, x86_64_linux: "08a7224d77364b35806c0bb736f29b5a1a0deebb6b3daa09acdd9b60d3506841"
end
depends_on "python@3.10"
depends_on "six"
resource "colorama" do
url "https://files.pythonhosted.org/packages/1f/bb/5d3246097ab77fa083a61bd8d3d527b7ae063c7d8e8671b1cf8c4ec10cbe/colorama-0.4.4.tar.gz"
sha256 "5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"
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/31/df/789bd0556e65cf931a5b87b603fcf02f79ff04d5379f3063588faaf9c1e4/pyparsing-3.0.8.tar.gz"
sha256 "7bf433498c016c4314268d95df76c81b842a4cb2b276fa3312cfb1e1d85f6954"
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 "PyYAML" do
url "https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz"
sha256 "68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2"
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