summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-sncosmo/package.py
blob: 802be084b438075501f328e5e4dd1e9e73c7adca (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
# Copyright 2013-2024 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.package import *


class PySncosmo(PythonPackage):
    """SNCosmo is a Python library for high-level supernova cosmology
    analysis."""

    homepage = "https://sncosmo.readthedocs.io/"
    pypi = "sncosmo/sncosmo-1.2.0.tar.gz"

    license("BSD-3-Clause")

    version("1.2.0", sha256="f3969eec5b25f60c70418dbd64765a2b4735bb53c210c61d0aab68916daea588")

    # Required dependencies
    depends_on("py-setuptools", type="build")
    depends_on("py-numpy", type=("build", "run"))
    depends_on("py-scipy", type=("build", "run"))
    depends_on("py-astropy", type=("build", "run"))

    # Recommended dependencies
    depends_on("py-matplotlib", type=("build", "run"))
    depends_on("py-iminuit", type=("build", "run"))
    depends_on("py-emcee", type=("build", "run"))
    depends_on("py-nestle", type=("build", "run"))