diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-cogent/package.py | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/py-cogent/package.py b/var/spack/repos/builtin/packages/py-cogent/package.py index 2fb64fee08..cf910ae6d1 100644 --- a/var/spack/repos/builtin/packages/py-cogent/package.py +++ b/var/spack/repos/builtin/packages/py-cogent/package.py @@ -31,7 +31,23 @@ class PyCogent(PythonPackage): homepage = "http://pycogent.org" url = "https://pypi.io/packages/source/c/cogent/cogent-1.9.tar.gz" - version('1.9', '7d9f28cd17664c1cd18c568fc53060d6') + version('1.9', sha256='57d8c58e0273ffe4f2b907874f9b49dadfd0600f5507b7666369f4e44d56ce14') + version('1.5.3', url="https://pypi.io/packages/source/c/cogent/cogent-1.5.3.tgz", + sha256='1215ac219070b7b2207b0b47b4388510f3e30ccd88160aa9f02f25d24bcbcd95') - depends_on('py-setuptools', type='build') - depends_on('py-numpy', type=('build', 'run')) + variant('matplotlib', default=False, description="graphs related to codon usage") + variant('mpi', default=False, description='MPI required for parallel computation.') + variant('mysql', default=False, description='Required for the Ensembl querying code.') + + depends_on('py-setuptools', type=('build'), when='@1.9') + depends_on('python@2.6:2.999', type=('build', 'run')) + depends_on('py-numpy@1.3:', type=('build', 'run')) + depends_on('zlib') + depends_on('py-matplotlib', when='+matplotlib', type=('build', 'run')) + depends_on('py-mpi4py', when='+mpi', type=('build', 'run')) + depends_on('py-sqlalchemy', when='+mysql', type=('build', 'run')) + depends_on('py-pymysql', when='+mysql', type=('build', 'run')) + depends_on('py-cython@0.17.1:', type='build') + + def setup_environment(self, spack_env, run_env): + spack_env.set('DONT_USE_PYREX', '1') |