py-picrust2: added new package (#20455)

This commit is contained in:
Desmond Orton 2021-01-06 01:54:36 -06:00 committed by GitHub
parent 7dbc4d32db
commit 8d0f5c0a6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 9 deletions

View file

@ -13,17 +13,20 @@ class PyBiomFormat(PythonPackage):
pypi = "biom-format/biom-format-2.1.6.tar.gz"
version('2.1.10', sha256='f5a277a8144f0b114606852c42f657b9cfde44b3cefa0b2638ab1c1d5e1d0488')
version('2.1.9', sha256='18a6e4d4b4b2a6bf2d5544fa357ad168bedeac93f0837015ef9c72f41fa89491')
version('2.1.7', sha256='b47e54282ef13cddffdb00aea9183a87175a2372c91a915259086a3f444c42f4')
version('2.1.6', sha256='8eefc275a85cc937f6d6f408d91b7b45eae854cd5d1cbda411a3af51f5b49b0d')
variant('h5py', default=True, description='For use with BIOM 2.0+ files')
depends_on('python@2.7:', type=('build', 'run'))
depends_on('python@3:', type=('build', 'run'), when='@2.1.9:')
depends_on('py-setuptools', type=('build', 'run'))
depends_on('py-cython', type='build')
depends_on('py-h5py', type=('build', 'run'), when='+h5py')
depends_on('py-click', type=('build', 'run'))
depends_on('py-numpy@1.3.0:', type=('build', 'run'))
depends_on('py-cython@0.29:', type='build')
depends_on('py-h5py', type=('build', 'run'))
depends_on('py-click', type=('build', 'run'), when='@2.1.5:')
depends_on('py-numpy@1.9.2:', type=('build', 'run'))
depends_on('py-future@0.16.0:', type=('build', 'run'))
depends_on('py-scipy@0.13.0:', type=('build', 'run'))
depends_on('py-pandas@0.19.2:', type=('build', 'run'))
depends_on('py-scipy@1.3.1:', type=('build', 'run'))
depends_on('py-pandas@0.20.0:', type=('build', 'run'))
depends_on('py-six@1.10.0:', type=('build', 'run'))
depends_on('py-pyqi', type=('build', 'run'))
depends_on('py-pyqi', type=('build', 'run'), when='^python@:2')

View file

@ -0,0 +1,26 @@
# Copyright 2013-2020 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 PyPicrust2(PythonPackage):
"""PICRUSt2 is a software for predicting functional
abundances based only on marker gene sequences."""
homepage = "https://github.com/picrust/picrust2"
url = "https://github.com/picrust/picrust2/archive/v2.3.0-b.tar.gz"
maintainers = ['dorton21']
version('2.3.0-b', sha256='ac12c372bc263e750d9101eca0cd0e57de37089b661fa1a13caf5a544d293737')
version('2.2.0-b', sha256='c41e1f487b33179f4aecede50cfd8b652aa3cef2ea1ae5fd022f531c7d549097')
version('2.1.4-b', sha256='f781eb323914979b6d3bca088a5152f085f53e6e38f1c3be94b35f99fc1db2d8')
depends_on('py-setuptools', type=('build'))
depends_on('py-numpy', type=('build', 'run'))
depends_on('py-h5py', type=('build', 'run'))
depends_on('py-joblib', type=('build', 'run'))
depends_on('py-biom-format', type=('build', 'run'))