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
|
# Copyright 2013-2023 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"
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"))
|