spack/var/spack/repos/builtin/packages/kraken/package.py
Todd Gamblin 62927654dd checksums: use sha256 checksums everywhere
We'd like to use a consistent checksum scheme everywhere so that we can:

    a) incorporate archive checksums into our specs and have a
       consistent hashing algorithm across all specs.

    b) index mirrors with a consistent type of checksum, and not one that
       is dependent on how spack packages are written.

- [x] convert existing md5, sha224, sha512, sha1 checksums to sha256
2019-10-12 07:19:43 -07:00

33 lines
1.1 KiB
Python

# Copyright 2013-2019 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 import *
import glob
import os
class Kraken(Package):
"""Kraken is a system for assigning taxonomic labels to short DNA
sequences, usually obtained through metagenomic studies."""
homepage = "https://ccb.jhu.edu/software/kraken/"
url = "https://github.com/DerrickWood/kraken/archive/v1.0.tar.gz"
version('1.0', sha256='bade6d83233c26226d02bd427fe0a4d6cd6dc5c0300927e30d41e885a478c378')
depends_on('perl', type=('build', 'run'))
# Does NOT support JELLYFISH 2.0. Ver 1.1.11 is the last version of
# JELLYFISH 1.
depends_on('jellyfish@1.1.11', when='@1.0')
def install(self, spec, prefix):
installer = Executable('./install_kraken.sh')
installer(self.stage.source_path)
mkdirp(prefix.bin)
files = glob.iglob('*')
for file in files:
if os.path.isfile(file):
install(file, prefix.bin)