Skip to content

Commit 6138e83

Browse files
committed
py-ard 1.2.1 that uses pandas==1.5.3 and nunpy==1.24.2
1 parent adcc022 commit 6138e83

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

Formula/py-ard@1.2.rb

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
class PyArd < Formula
2+
include Language::Python::Virtualenv
3+
4+
desc "Project py-ard is the swiss army knife of HLA ARD reductions in Python"
5+
homepage "https://py-ard.org"
6+
url "https://files.pythonhosted.org/packages/15/90/d7ccff3946e2f9f51cfda500bb75e62370f4c7470dcb20fc0fcb4d48e6b2/py-ard-1.2.1.tar.gz"
7+
sha256 "e458e51c24d39e35ea0c25e1e90b83d6146a849514e252712ea05c0ffd73395b"
8+
license "LGPL-3.0"
9+
10+
depends_on "python@3.10"
11+
12+
resource "numpy" do
13+
url "https://files.pythonhosted.org/packages/e4/a9/6704bb5e1d1d778d3a6ee1278a8d8134f0db160e09d52863a24edb58eab5/numpy-1.24.2.tar.gz"
14+
sha256 "003a9f530e880cb2cd177cba1af7220b9aa42def9c4afc2a2fc3ee6be7eb2b22"
15+
end
16+
17+
resource "pandas" do
18+
url "https://files.pythonhosted.org/packages/74/ee/146cab1ff6d575b54ace8a6a5994048380dc94879b0125b25e62edcb9e52/pandas-1.5.3.tar.gz"
19+
sha256 "74a3fd7e5a7ec052f183273dc7b0acd3a863edf7520f5d3a1765c04ffdb3b0b1"
20+
end
21+
22+
resource "python-dateutil" do
23+
url "https://files.pythonhosted.org/packages/4c/c4/13b4776ea2d76c115c1d1b84579f3764ee6d57204f6be27119f13a61d0a9/python-dateutil-2.8.2.tar.gz"
24+
sha256 "0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"
25+
end
26+
27+
resource "pytz" do
28+
url "https://files.pythonhosted.org/packages/03/3e/dc5c793b62c60d0ca0b7e58f1fdd84d5aaa9f8df23e7589b39cc9ce20a03/pytz-2022.7.1.tar.gz"
29+
sha256 "01a0681c4b9684a28304615eba55d1ab31ae00bf68ec157ec3708a8182dbbcd0"
30+
end
31+
32+
resource "six" do
33+
url "https://files.pythonhosted.org/packages/71/39/171f1c67cd00715f190ba0b100d606d440a28c93c7714febeca8b79af85e/six-1.16.0.tar.gz"
34+
sha256 "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"
35+
end
36+
37+
resource "toml" do
38+
url "https://files.pythonhosted.org/packages/be/ba/1f744cdc819428fc6b5084ec34d9b30660f6f9daaf70eead706e3203ec3c/toml-0.10.2.tar.gz"
39+
sha256 "b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"
40+
end
41+
42+
def install
43+
virtualenv_install_with_resources
44+
end
45+
46+
test do
47+
# Do a basic test of reducing HLA-A*01:01:01
48+
redux_result = shell_output("#{bin}/pyard --gl 'HLA-A*01:01:01' -r lgx")
49+
assert_match("HLA-A*01:01", redux_result.strip)
50+
end
51+
end

0 commit comments

Comments
 (0)