Skip to content

Commit 4bad77f

Browse files
committed
Upgrade py-ard to 1.5.1 and pandas/numpy to 2.x.x
1 parent 6138e83 commit 4bad77f

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

Formula/py-ard@1.5.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/c3/a8/91f2346df41644f6e7a380cdd35322eb17088d51ddb6d4ebf2bd38b111b6/py-ard-1.5.1.tar.gz"
7+
sha256 "dba86f59d63184f024f2398e9e60f6b17ad1befe38722914bc8ead1f6fd483d9"
8+
license "LGPL-3.0"
9+
10+
depends_on "python@3.12"
11+
12+
resource "numpy" do
13+
url "https://files.pythonhosted.org/packages/a9/75/10dd1f8116a8b796cb2c737b674e02d02e80454bda953fa7e65d8c12b016/numpy-2.0.2.tar.gz"
14+
sha256 "883c987dee1880e2a864ab0dc9892292582510604156762362d9326444636e78"
15+
end
16+
17+
resource "pandas" do
18+
url "https://files.pythonhosted.org/packages/88/d9/ecf715f34c73ccb1d8ceb82fc01cd1028a65a5f6dbc57bfa6ea155119058/pandas-2.2.2.tar.gz"
19+
sha256 "9e79019aba43cb4fda9e4d983f8e88ca0373adbb697ae9c6c43093218de28b54"
20+
end
21+
22+
resource "python-dateutil" do
23+
url "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz"
24+
sha256 "37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3"
25+
end
26+
27+
resource "pytz" do
28+
url "https://files.pythonhosted.org/packages/3a/31/3c70bf7603cc2dca0f19bdc53b4537a797747a58875b552c8c413d963a3f/pytz-2024.2.tar.gz"
29+
sha256 "2aa355083c50a0f93fa581709deac0c9ad65cca8a9e9beac660adcbd493c798a"
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)