homebrew-core/Formula/tarsnapper.rb
2019-12-30 18:05:12 +01:00

58 lines
2.3 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://github.com/miracle2k/tarsnapper/archive/0.4.tar.gz"
sha256 "94ac22c3ed72e6321596f7d229b34fd21b59a00035162c5b22f2a1ee64dc6d01"
revision 1
bottle do
cellar :any_skip_relocation
rebuild 1
sha256 "c8aed5b1a7504bd802c9ea3fd05ec117d8eea8ed02757d43050cb5a2333291bf" => :catalina
sha256 "a2a2136bc1bd1976a65dc6aaaea948b5e1c77d53a629ac8c0bc6ac1a217c4903" => :mojave
sha256 "4bc26d5cea15f1007441778cec42a65070c486267e4b2b86905c6086a35e6df2" => :high_sierra
end
depends_on "python"
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/89/43/07d07654ee3e25235d8cea4164cdee0ec39d1fda8e9203156ebe403ffda4/pexpect-4.6.0.tar.gz"
sha256 "2a8e88259839571d1251d278476f3eec5db26deb73a70be5ed5dc5435e418aba"
end
resource "PyYAML" do
url "https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz"
sha256 "3ef3092145e9b70e3ddd2c7ad59bdd0252a94dfe3949721633e41344de00a6bf"
end
resource "python-dateutil" do
url "https://files.pythonhosted.org/packages/a0/b0/a4e3241d2dee665fea11baec21389aec6886655cd4db7647ddf96c3fad15/python-dateutil-2.7.3.tar.gz"
sha256 "e27001de32f627c22380a688bcc43ce83504a7bc5da472209b4c70f02829f0b8"
end
resource "ptyprocess" do
url "https://files.pythonhosted.org/packages/7d/2d/e4b8733cf79b7309d84c9081a4ab558c89d8c89da5961bf4ddb050ca1ce0/ptyprocess-0.6.0.tar.gz"
sha256 "923f299cc5ad920c68f2bc0bc98b75b9f838b93b599941a6b63ddbc2476394c0"
end
resource "six" do
url "https://files.pythonhosted.org/packages/16/d8/bc6316cf98419719bd59c91742194c111b6f2e85abac88e496adefaf7afe/six-1.11.0.tar.gz"
sha256 "70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9"
end
def install
virtualenv_install_with_resources
end
test do
assert_match /usage: tarsnapper/, shell_output("#{bin}/tarsnapper --help")
end
end