
* fix remaining flake8 errors * imports: sort imports everywhere in Spack We enabled import order checking in #23947, but fixing things manually drives people crazy. This used `spack style --fix --all` from #24071 to automatically sort everything in Spack so PR submitters won't have to deal with it. This should go in after #24071, as it assumes we're using `isort`, not `flake8-import-order` to order things. `isort` seems to be more flexible and allows `llnl` mports to be in their own group before `spack` ones, so this seems like a good switch.
26 lines
866 B
Python
26 lines
866 B
Python
# Copyright 2013-2021 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 os import chmod
|
|
|
|
from spack import *
|
|
|
|
|
|
class Tbl2asn(Package):
|
|
"""Tbl2asn is a command-line program that automates the creation of
|
|
sequence records for submission to GenBank."""
|
|
|
|
homepage = "https://www.ncbi.nlm.nih.gov/genbank/tbl2asn2/"
|
|
|
|
version('2020-03-01', sha256='7cc1119d3cfcbbffdbd4ecf33cef8bbdd44fc5625c72976bee08b1157625377e')
|
|
|
|
def url_for_version(self, ver):
|
|
return "https://ftp.ncbi.nih.gov/toolbox/ncbi_tools/converters/by_program/tbl2asn/linux.tbl2asn.gz"
|
|
|
|
def install(self, spec, prefix):
|
|
mkdirp(prefix.bin)
|
|
install('../linux.tbl2asn', prefix.bin.tbl2asn)
|
|
chmod(prefix.bin.tbl2asn, 0o775)
|