homebrew-core/Formula/virtualenv.rb

49 lines
2.1 KiB
Ruby

class Virtualenv < Formula
include Language::Python::Virtualenv
desc "Tool for creating isolated virtual python environments"
homepage "https://virtualenv.pypa.io/"
url "https://files.pythonhosted.org/packages/f4/6d/bfcfff1709d05143e71337db4800b30dd9abf0c41972960c9e8984ab96f7/virtualenv-20.4.3.tar.gz"
sha256 "49ec4eb4c224c6f7dd81bb6d0a28a09ecae5894f4e593c89b0db0885f565a107"
license "MIT"
head "https://github.com/pypa/virtualenv.git"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "00881fbdbea68d16f933d16665258d98de7794fea4b78335219bcd3fc1a8f4fc"
sha256 cellar: :any_skip_relocation, big_sur: "7d5a8e93ed2690dcda326480d52565a603b2b3ece9bc39c705edfbaf69cb842b"
sha256 cellar: :any_skip_relocation, catalina: "1b2314e8b79c6b760377d2c374d5e6e9c9a4bd907c019874bb90134943b97880"
sha256 cellar: :any_skip_relocation, mojave: "ff6dac3b56950648b93a27642f6f551afd645c93ec737081e77b2a79d5d74b94"
end
depends_on "python@3.9"
resource "appdirs" do
url "https://files.pythonhosted.org/packages/d7/d8/05696357e0311f5b5c316d7b95f46c669dd9c15aaeecbb48c7d0aeb88c40/appdirs-1.4.4.tar.gz"
sha256 "7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41"
end
resource "distlib" do
url "https://files.pythonhosted.org/packages/2f/83/1eba07997b8ba58d92b3e51445d5bf36f9fba9cb8166bcae99b9c3464841/distlib-0.3.1.zip"
sha256 "edf6116872c863e1aa9d5bb7cb5e05a022c519a4594dc703843343a9ddd9bff1"
end
resource "filelock" do
url "https://files.pythonhosted.org/packages/14/ec/6ee2168387ce0154632f856d5cc5592328e9cf93127c5c9aeca92c8c16cb/filelock-3.0.12.tar.gz"
sha256 "18d82244ee114f543149c66a6e0c14e9c4f8a1044b5cdaadd0f82159d6a6ff59"
end
resource "six" do
url "https://files.pythonhosted.org/packages/6b/34/415834bfdafca3c5f451532e8a8d9ba89a21c9743a0c59fbd0205c7f9426/six-1.15.0.tar.gz"
sha256 "30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"
end
def install
virtualenv_install_with_resources
end
test do
system "#{bin}/virtualenv", "venv_dir"
assert_match "venv_dir", shell_output("venv_dir/bin/python -c 'import sys; print(sys.prefix)'")
end
end