Skip to content

Commit aff29be

Browse files
jvcarliBrewTestBot
authored andcommitted
tmuxp 1.7.2 (new formula)
Closes #79011. Signed-off-by: Nanda H Krishna <[email protected]> Signed-off-by: BrewTestBot <[email protected]>
1 parent d93beaf commit aff29be

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

Formula/tmuxp.rb

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
class Tmuxp < Formula
2+
include Language::Python::Virtualenv
3+
4+
desc "Tmux session manager. Built on libtmux"
5+
homepage "https://tmuxp.git-pull.com/"
6+
url "https://files.pythonhosted.org/packages/e3/c3/1a5fc7b78aa331b46dcb862708dd3749768b10fc60b0c4fe5c29bfaad824/tmuxp-1.7.2.tar.gz"
7+
sha256 "14296b62db260420d4600dcd805408ea908b3a78d4ea0a6a403d092fdbf6d075"
8+
license "MIT"
9+
10+
depends_on "[email protected]"
11+
depends_on "tmux"
12+
13+
resource "click" do
14+
url "https://files.pythonhosted.org/packages/27/6f/be940c8b1f1d69daceeb0032fee6c34d7bd70e3e649ccac0951500b4720e/click-7.1.2.tar.gz"
15+
sha256 "d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a"
16+
end
17+
18+
resource "colorama" do
19+
url "https://files.pythonhosted.org/packages/1f/bb/5d3246097ab77fa083a61bd8d3d527b7ae063c7d8e8671b1cf8c4ec10cbe/colorama-0.4.4.tar.gz"
20+
sha256 "5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"
21+
end
22+
23+
resource "kaptan" do
24+
url "https://files.pythonhosted.org/packages/94/64/f492edfcac55d4748014b5c9f9a90497325df7d97a678c5d56443f881b7a/kaptan-0.5.12.tar.gz"
25+
sha256 "1abd1f56731422fce5af1acc28801677a51e56f5d3c3e8636db761ed143c3dd2"
26+
end
27+
28+
resource "libtmux" do
29+
url "https://files.pythonhosted.org/packages/b0/43/4b66181475cb78be02e69a121e4f69d72aef7d2eb5855b23fa4ff13e055c/libtmux-0.8.5.tar.gz"
30+
sha256 "1d35b9f8451944d31c5ed22ed9e6c8e18034adcc75718fcc5b27fbd9621543e1"
31+
end
32+
33+
resource "PyYAML" do
34+
url "https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz"
35+
sha256 "607774cbba28732bfa802b54baa7484215f530991055bb562efbed5b2f20a45e"
36+
end
37+
38+
def install
39+
virtualenv_install_with_resources
40+
end
41+
42+
test do
43+
assert_match version.to_s, shell_output("#{bin}/tmuxp --version")
44+
45+
(testpath/"test_session.yaml").write <<~EOS
46+
session_name: 2-pane-vertical
47+
windows:
48+
- window_name: my test window
49+
panes:
50+
- echo hello
51+
- echo hello
52+
EOS
53+
54+
system bin/"tmuxp", "debug-info"
55+
system bin/"tmuxp", "convert", "--yes", "test_session.yaml"
56+
assert_predicate testpath/"test_session.json", :exist?
57+
end
58+
end

0 commit comments

Comments
 (0)