spack/var/spack/repos/builtin/packages/kaiju/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

30 lines
969 B
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 *
class Kaiju(MakefilePackage):
"""Kaiju is a program for the taxonomic classification
of high-throughput sequencing reads."""
homepage = "https://github.com/bioinformatics-centre/kaiju"
url = "https://github.com/bioinformatics-centre/kaiju/archive/v1.6.2.zip"
version('1.6.2', sha256='2685fed7e27ddeb26530fd60a4b388f2d5f3e29aaa79f8e2e6abcbac64075db8')
build_directory = 'src'
depends_on('perl-io-compress', type='run')
depends_on('py-htseq', type='run')
def edit(self, spec, prefix):
# Replace ftp:// with https://
makedb = FileFilter('util/makeDB.sh')
makedb.filter('ftp://', 'https://', string=True)
def install(self, spec, prefix):
install_tree('bin', prefix.bin)