Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py-hepstats: new package #43697

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
41 changes: 41 additions & 0 deletions var/spack/repos/builtin/packages/py-hepstats/package.py
@@ -0,0 +1,41 @@
# 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 PyHepstats(Package):
"""hepstats is a library for statistical inference aiming
to cover the needs High Energy Physics.
It is part of the Scikit-HEP project.
"""

homepage = "https://github.com/scikit-hep/hepstats"
pypi = "hepstats/hepstats-0.8.0.tar.gz"
jonas-eschle marked this conversation as resolved.
Show resolved Hide resolved
jonas-eschle marked this conversation as resolved.
Show resolved Hide resolved

maintainers("jonas-eschle")

license("BSD-3-Clause", checked_by="jonas-eschle")

tags = ["likelihood", "statistics", "inference", "fitting", "hep"]

version("0.8.1", sha256="78f283fc77b2a1bd0f6dd108f2ecce269359a14797cbf3a1af2eea9a29ce96db")
tldahlgren marked this conversation as resolved.
Show resolved Hide resolved

depends_on("python@3.9:3.12", type=("build", "run"), when="@0.8:")
depends_on("py-setuptools@42:", type="build")
depends_on("py-setuptools-scm@3.4:+toml", type="build")

variant("zfit", default=True, description="Allows to use improved tools from zfit.")

with default_args(type=("build", "run")):
depends_on("py-pandas")
depends_on("py-numpy")
depends_on("py-asdf")
depends_on("py-scipy")
depends_on("py-tqdm")
depends_on("py-uhi")

with when("+zfit"):
depends_on("py-zfit@0.20", when="@0.8:")