homebrew-core/Formula/tarsnapper.rb

60 lines
2.6 KiB
Ruby

class Tarsnapper < Formula
include Language::Python::Virtualenv
desc "Tarsnap wrapper which expires backups using a gfs-scheme"
homepage "https://github.com/miracle2k/tarsnapper"
url "https://files.pythonhosted.org/packages/4e/c5/0a08950e5faba96e211715571c68ef64ee37b399ef4f0c4ab55e66c3c4fe/tarsnapper-0.5.0.tar.gz"
sha256 "b129b0fba3a24b2ce80c8a2ecd4375e36b6c7428b400e7b7ab9ea68ec9bb23ec"
license "BSD-2-Clause"
bottle do
sha256 cellar: :any, arm64_big_sur: "507902249b2fe7c3f13b11ce669e12ed78253276e5c37f748922455126dff5cd"
sha256 cellar: :any, big_sur: "bc6193b16d969dd37047b726cf50a243ec08f2f015b85bda59acfd9ec18c9451"
sha256 cellar: :any, catalina: "fce1d4069e55c05f40ec638e27e4b064ae5ed72854b8ddd13268d6baf735cd95"
sha256 cellar: :any, mojave: "aba5962a85058b3468e224b15d0c8f294ba4472f1b29c5d1072c64fc6c6a104b"
sha256 cellar: :any, high_sierra: "810a32cba365609ed7d28dd52d2f68aaded70deccde209849db5be49a3662e68"
end
depends_on "libyaml"
depends_on "python@3.9"
depends_on "tarsnap"
resource "argparse" do
url "https://files.pythonhosted.org/packages/18/dd/e617cfc3f6210ae183374cd9f6a26b20514bbb5a792af97949c5aacddf0f/argparse-1.4.0.tar.gz"
sha256 "62b089a55be1d8949cd2bc7e0df0bddb9e028faefc8c32038cc84862aefdd6e4"
end
resource "pexpect" do
url "https://files.pythonhosted.org/packages/e5/9b/ff402e0e930e70467a7178abb7c128709a30dfb22d8777c043e501bc1b10/pexpect-4.8.0.tar.gz"
sha256 "fc65a43959d153d0114afe13997d439c22823a27cefceb5ff35c2178c6784c0c"
end
resource "ptyprocess" do
url "https://files.pythonhosted.org/packages/7d/2d/e4b8733cf79b7309d84c9081a4ab558c89d8c89da5961bf4ddb050ca1ce0/ptyprocess-0.6.0.tar.gz"
sha256 "923f299cc5ad920c68f2bc0bc98b75b9f838b93b599941a6b63ddbc2476394c0"
end
resource "python-dateutil" do
url "https://files.pythonhosted.org/packages/be/ed/5bbc91f03fa4c839c4c7360375da77f9659af5f7086b7a7bdda65771c8e0/python-dateutil-2.8.1.tar.gz"
sha256 "73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c"
end
resource "PyYAML" do
url "https://files.pythonhosted.org/packages/64/c2/b80047c7ac2478f9501676c988a5411ed5572f35d1beff9cae07d321512c/PyYAML-5.3.1.tar.gz"
sha256 "b8eac752c5e14d3eca0e6dd9199cd627518cb5ec06add0de9d32baeee6fe645d"
end
resource "six" do
url "https://files.pythonhosted.org/packages/21/9f/b251f7f8a76dec1d6651be194dfba8fb8d7781d10ab3987190de8391d08e/six-1.14.0.tar.gz"
sha256 "236bdbdce46e6e6a3d61a337c0f8b763ca1e8717c03b369e87a7ec7ce1319c0a"
end
def install
virtualenv_install_with_resources
end
test do
assert_match "usage: tarsnapper", shell_output("#{bin}/tarsnapper --help")
end
end