summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-abcpy/package.py
blob: 7802d8a189da55507414717216b470efb337ca79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 2013-2022 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 PyAbcpy(PythonPackage):
    """
    ABCpy is a highly modular, scientific library for approximate Bayesian
    computation (ABC) written in Python. It is designed to run all included ABC
    algorithms in parallel, either using multiple cores of a single computer or
    using an Apache Spark or MPI enabled cluster.
    """

    homepage = "https://github.com/eth-cscs/abcpy"
    pypi     = "abcpy/abcpy-0.6.3.tar.gz"

    version('0.6.3', sha256='14cd959f3ccff8f5fd1d16239b8706cc8d1c1e2fe25d72855f500f005de41245')

    depends_on('python@3.6:', type=('build', 'run'))
    depends_on('py-setuptools', type='build')

    depends_on('py-numpy', type=('build', 'run'))
    depends_on('py-scipy', type=('build', 'run'))
    depends_on('py-scikit-learn@0.23.1:', type=('build', 'run'))
    depends_on('py-glmnet@2.2.1:', type=('build', 'run'))
    depends_on('py-mpi4py', type=('build', 'run'))
    depends_on('py-cloudpickle', type=('build', 'run'))
    depends_on('py-matplotlib', type=('build', 'run'))
    depends_on('py-tqdm', type=('build', 'run'))
    depends_on('py-pot', type=('build', 'run'))

    # Development dependencies are required in setup.py :(
    depends_on('py-sphinx', type='build')
    depends_on('py-sphinx-rtd-theme', type='build')
    depends_on('py-coverage', type='build')