homebrew-core/Formula/pipgrip.rb

62 lines
2.9 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/73/90/66e8438b3cea05e5d7c79290fa21440f2c310b072ec705c892301fbc5750/pipgrip-0.8.7.tar.gz"
sha256 "ed551363b7566fccf33b58a89106163fd630539b5fd2ba2285b62357e80b47f7"
license "BSD-3-Clause"
bottle do
sha256 cellar: :any_skip_relocation, arm64_monterey: "3e824c6d9a9fb61ace91cd4c53b99b21a79e27089d59dec68aa3efc422782e49"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "7a3fb29967a8576f0909c5f51a3d7c2080336172711e156bd87b7c45176464d5"
sha256 cellar: :any_skip_relocation, monterey: "8644413d9d558772439ea862cce3eacac0be296421ef25c87a5a2ffb6f8de5f9"
sha256 cellar: :any_skip_relocation, big_sur: "3d539eb35cabb72453eaa4da03cb8cea6a565467df9bf32f3317a75364b48e85"
sha256 cellar: :any_skip_relocation, catalina: "d92e24dd25d501871eb4f937dda09d1c75f57d283ddd020aa4971bba207627b2"
sha256 cellar: :any_skip_relocation, x86_64_linux: "b55373f0537c1f7809a2787722f505b0da0290308682c9554464eb3111e2e5bc"
end
depends_on "python@3.10"
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/df/9e/d1a7217f69310c1db8fdf8ab396229f55a699ce34a203691794c5d1cad0c/packaging-21.3.tar.gz"
sha256 "dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb"
end
resource "pkginfo" do
url "https://files.pythonhosted.org/packages/23/3f/f2251c754073cda0f00043a707cba7db103654722a9afed965240a0b2b43/pkginfo-1.7.1.tar.gz"
sha256 "e7432f81d08adec7297633191bbf0bd47faf13cd8724c3a13250e51d542635bd"
end
resource "pyparsing" do
url "https://files.pythonhosted.org/packages/71/22/207523d16464c40a0310d2d4d8926daffa00ac1f5b1576170a32db749636/pyparsing-3.0.9.tar.gz"
sha256 "2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb"
end
resource "wheel" do
url "https://files.pythonhosted.org/packages/c0/6c/9f840c2e55b67b90745af06a540964b73589256cb10cc10057c87ac78fc2/wheel-0.37.1.tar.gz"
sha256 "e9a504e793efbca1b8e0e9cb979a249cf4a0a7b5b8c9e8b65a5e39d49529c1c4"
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