Skip to content

Instantly share code, notes, and snippets.

@ozcan
Created May 8, 2017 16:04
Show Gist options
  • Save ozcan/84a4014606c9cc16c929bd64edd96fe1 to your computer and use it in GitHub Desktop.
Save ozcan/84a4014606c9cc16c929bd64edd96fe1 to your computer and use it in GitHub Desktop.
class Anvio < Formula
include Language::Python::Virtualenv
desc "Analysis and visualization platform for ‘omics data."
homepage "http://merenlab.org/projects/anvio/"
url "https://pypi.python.org/packages/4b/b0/28e526dd0473c45235da36d3d24943f1f6f8d33d232d69b337c4f5ed4955/anvio-2.3.1.tar.gz"
sha256 "d37cd3a4af1f91260e02e8457e995d588fb011541c9032352d5c2c9facee4de0"
head "https://github.com/merenlab/anvio.git"
bottle do
sha256 "ff88e7e3c589b2ac9ac70b27407154d26993bfd552568047818e85e3cf70e8a3" => :sierra
sha256 "f49b13b9504c6431be604e9d8dbaa3b446991d700d5801791076cb46fdc080ec" => :el_capitan
sha256 "ad71f1e5e811b33f08dc41282835135243f6673e934d283bd28433b78baf0ab0" => :yosemite
end
# doi "10.7717/peerj.1319"
# tag "bioinformatics"
depends_on :python3
depends_on :fortran
depends_on "prodigal"
depends_on "hmmer"
depends_on "sqlite"
depends_on "gsl"
depends_on "hdf5"
depends_on "diamond"
depends_on "mcl"
depends_on "muscle"
depends_on "blast"
resource "numpy" do
url "https://pypi.python.org/packages/a5/16/8a678404411842fe02d780b5f0a676ff4d79cd58f0f22acddab1b392e230/numpy-1.12.1.zip"
sha256 "a65266a4ad6ec8936a1bc85ce51f8600634a31a258b722c9274a80ff189d9542"
end
resource "scipy" do
url "https://pypi.python.org/packages/e5/93/9a8290e7eb5d4f7cb53b9a7ad7b92b9827ecceaddfd04c2a83f195d8767d/scipy-0.19.0.zip"
sha256 "4190d34bf9a09626cd42100bbb12e3d96b2daf1a8a3244e991263eb693732122"
end
resource "bottle" do
url "https://pypi.python.org/packages/a1/f6/0db23aeeb40c9a7c5d226b1f70ce63822c567178eee5b623bca3e0cc3bef/bottle-0.12.11.tar.gz"
sha256 "a1958f9725042a9809ebe33d7eadf90d1d563a8bdd6ce5f01849bff7e941a731"
end
resource "pysam" do
url "https://pypi.python.org/packages/be/70/16cdd6c5ef799b2db2af4fd5f9720df0f3206b0a06ed40e03692aa80ae25/pysam-0.11.1.tar.gz"
sha256 "fbc710f82cb4334b3b88be9b7a9781547456fdcb2135755b68e041e96fc28de1"
end
resource "ete3" do
url "https://pypi.python.org/packages/f0/c5/e1bb20c02f0e7cd924eab783901b4e2acf8fda79c0f7c7303b740bf7b98e/ete3-3.0.0b35.tar.gz"
sha256 "f9f055f5865d00afb8882e0ea128dea2df6fba2e31e3486392a282a2aa90dc18"
end
resource "scikit-learn" do
url "https://pypi.python.org/packages/f1/dc/5fb2834511eef6f86e17b6ec41c0c7a60733f79633827e75aaa55029a9fa/scikit-learn-0.18.1.tar.gz"
sha256 "1eddfc27bb37597a5d514de1299981758e660e0af56981c0bfdf462c9568a60c"
end
resource "Django" do
url "https://pypi.python.org/packages/3b/14/6c1e7508b1342afde8e80f50a55d6b305c0755c702f741db6094924f7499/Django-1.10.4.tar.gz"
sha256 "fff7f062e510d812badde7cfc57745b7779edb4d209b2bc5ea8d954c22305c2b"
end
resource "Cython" do
url "https://pypi.python.org/packages/b7/67/7e2a817f9e9c773ee3995c1e15204f5d01c8da71882016cac10342ef031b/Cython-0.25.2.tar.gz"
sha256 "f141d1f9c27a07b5a93f7dc5339472067e2d7140d1c5a9e20112a5665ca60306"
end
resource "h5py" do
url "https://pypi.python.org/packages/22/82/64dada5382a60471f85f16eb7d01cc1a9620aea855cd665609adf6fdbb0d/h5py-2.6.0.tar.gz"
sha256 "b2afc35430d5e4c3435c996e4f4ea2aba1ea5610e2d2f46c9cae9f785e33c435"
end
resource "cherrypy" do
url "https://pypi.python.org/packages/56/aa/91005730bdc5c0da8291a2f411aacbc5c3729166c382e2193e33f28044a3/CherryPy-8.9.1.tar.gz"
sha256 "dfad2f34e929836d016ae79f9e27aff250a8a71df200bf87c3e9b23541e091c5"
end
resource "requests" do
url "https://pypi.python.org/packages/5b/0b/34be574b1ec997247796e5d516f3a6b6509c4e064f2885a96ed885ce7579/requests-2.12.4.tar.gz"
sha256 "ed98431a0631e309bb4b63c81d561c1654822cb103de1ac7b47e45c26be7ae34"
end
resource "psutil" do
url "https://pypi.python.org/packages/78/0a/aa90434c6337dd50d182a81fe4ae4822c953e166a163d1bf5f06abb1ac0b/psutil-5.1.3.tar.gz"
sha256 "959bd58bdc8152b0a143cb3bd822d4a1b8f7230617b0e3eb2ff6e63812120f2b"
end
resource "mistune" do
url "https://pypi.python.org/packages/25/a4/12a584c0c59c9fed529f8b3c47ca8217c0cf8bcc5e1089d3256410cfbdbc/mistune-0.7.4.tar.gz"
sha256 "8517af9f5cd1857bb83f9a23da75aa516d7538c32a2c5d5c56f3789a9e4cd22f"
end
def install
ENV["HTSLIB_CONFIGURE_OPTIONS"] = "--disable-libcurl"
ENV["HAVE_LIBCURL"] = "False"
virtualenv_install_with_resources
end
test do
system "#{bin}/anvi-profile", "--version"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment