
* added mlst and deps * added install() to any2fasta * added script dependencies, builds OK * fixed style * Update var/spack/repos/builtin/packages/any2fasta/package.py Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
37 lines
1.2 KiB
Python
37 lines
1.2 KiB
Python
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
|
from spack.package import *
|
|
|
|
|
|
class Mlst(Package):
|
|
"""Scan contig files against traditional PubMLST typing schemes"""
|
|
|
|
homepage = "https://github.com/tseemann/mlst"
|
|
url = "https://github.com/tseemann/mlst/archive/refs/tags/v2.22.1.tar.gz"
|
|
|
|
version("2.22.1", sha256="a8f64d7cb961a8e422e96a19309ad8707f8792d9f755a9e5a1f5742986d19bca")
|
|
|
|
depends_on("perl@5.26:", type="run")
|
|
depends_on("perl-moo", type="run")
|
|
depends_on("perl-list-moreutils", type="run")
|
|
depends_on("perl-json", type="run")
|
|
depends_on("perl-file-which", type="run")
|
|
depends_on("blast-plus@2.9.0:", type="run")
|
|
depends_on("any2fasta", type="run")
|
|
# dependencies for scripts
|
|
depends_on("parallel", type="run")
|
|
depends_on("curl", type="run")
|
|
|
|
def install(self, spec, prefix):
|
|
mkdirp(prefix.bin)
|
|
mkdirp(prefix.db)
|
|
mkdirp(prefix.perl5)
|
|
install_tree("bin", prefix.bin)
|
|
install_tree("scripts", prefix.bin)
|
|
install_tree("db", prefix.db)
|
|
install_tree("perl5", prefix.perl5)
|