homebrew-core/Formula/pipgrip.rb

58 lines
2.8 KiB
Ruby

class Pipgrip < Formula
include Language::Python::Virtualenv
desc "Lightweight pip dependency resolver"
homepage "https://github.com/ddelange/pipgrip"
url "https://files.pythonhosted.org/packages/7f/59/22e9647cd3a6ea424d55ba3045cc599c1a06280feab219f0142cf59bbc4b/pipgrip-0.10.1.tar.gz"
sha256 "7cb309d82fea751cea5b3e546521cb5d7fda4935c6576c26a8bacdedc45ad004"
license "BSD-3-Clause"
bottle do
sha256 cellar: :any_skip_relocation, arm64_ventura: "226ebfa170c4b1165c7f40f1a9fd498ae9428acd14b664ab2212455512b8eb59"
sha256 cellar: :any_skip_relocation, arm64_monterey: "c360aab3b7b23df12e479c6654879addd6f7945ed9e520b4b14400af6befddec"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "9ea130b63e561698eeee08a863cc4e66d5c8d935f6c30216ab25181e0e434760"
sha256 cellar: :any_skip_relocation, ventura: "7ca276433ca9cf9edd4719dbf6a0b3a1961675678c3e7278bd4c3c7130e4ab3f"
sha256 cellar: :any_skip_relocation, monterey: "748a82da737629d1a03ca79738010443129c375880f27186eaae92edf2c7457b"
sha256 cellar: :any_skip_relocation, big_sur: "7376ca33e22a3cd6b749d6eba2f031f230ba69c60c98f89efea2b8011ac60ef9"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d12051f65ebfbebccf0a9699c74938b476a2b169ee0ebc9b75e550ebf5e9463f"
end
depends_on "python@3.11"
depends_on "six"
resource "anytree" do
url "https://files.pythonhosted.org/packages/d8/45/de59861abc8cb66e9e95c02b214be4d52900aa92ce34241a957dcf1d569d/anytree-2.8.0.tar.gz"
sha256 "3f0f93f355a91bc3e6245319bf4c1d50e3416cc7a35cc1133c1ff38306bbccab"
end
resource "click" do
url "https://files.pythonhosted.org/packages/59/87/84326af34517fca8c58418d148f2403df25303e02736832403587318e9e8/click-8.1.3.tar.gz"
sha256 "7682dc8afb30297001674575ea00d1814d808d6a36af415a82bd481d37ba7b8e"
end
resource "packaging" do
url "https://files.pythonhosted.org/packages/6b/f7/c240d7654ddd2d2f3f328d8468d4f1f876865f6b9038b146bec0a6737c65/packaging-22.0.tar.gz"
sha256 "2198ec20bd4c017b8f9717e00f0c8714076fc2fd93816750ab48e2c41de2cfd3"
end
resource "pkginfo" do
url "https://files.pythonhosted.org/packages/23/3f/f2251c754073cda0f00043a707cba7db103654722a9afed965240a0b2b43/pkginfo-1.7.1.tar.gz"
sha256 "e7432f81d08adec7297633191bbf0bd47faf13cd8724c3a13250e51d542635bd"
end
resource "wheel" do
url "https://files.pythonhosted.org/packages/a2/b8/6a06ff0f13a00fc3c3e7d222a995526cbca26c1ad107691b6b1badbbabf1/wheel-0.38.4.tar.gz"
sha256 "965f5259b566725405b05e7cf774052044b1ed30119b5d586b2703aafe8719ac"
end
def install
virtualenv_install_with_resources
end
test do
assert_match "pipgrip==#{version}", shell_output("#{bin}/pipgrip pipgrip --no-cache-dir")
# Test gcc dependency
assert_match "dxpy==", shell_output("#{bin}/pipgrip dxpy --no-cache-dir")
end
end