From 369928200ab1c7a82b2df155700ec09c2df47eb0 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Mon, 13 Jan 2025 15:44:39 -0600 Subject: [PATCH] py-histoprint: add v2.5.0, v2.6.0 (switch to hatchling) (#48452) * py-histoprint: add v2.5.0, v2.6.0 (switch to hatchling) * py-histoprint: add tag hep --- .../builtin/packages/py-histoprint/package.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/var/spack/repos/builtin/packages/py-histoprint/package.py b/var/spack/repos/builtin/packages/py-histoprint/package.py index 9c4ce9161a0..61deea70a66 100644 --- a/var/spack/repos/builtin/packages/py-histoprint/package.py +++ b/var/spack/repos/builtin/packages/py-histoprint/package.py @@ -11,14 +11,23 @@ class PyHistoprint(PythonPackage): homepage = "https://github.com/scikit-hep/histoprint" pypi = "histoprint/histoprint-2.2.0.tar.gz" - license("MIT") + tags = ["hep"] + license("MIT", checked_by="wdconinc") + + version("2.6.0", sha256="e1df729350455b457e97f20883537ae74522879e7c33c609df12f247cca4a21d") + version("2.5.0", sha256="9097e7396ab3a9a83c916f7e53c462ea46e4f645c1ad91604738f2d8383efd4f") version("2.4.0", sha256="328f789d186e3bd76882d57b5aad3fa08c7870a856cc83bcdbad9f4aefbda94d") version("2.2.0", sha256="ef8b65f7926aaa989f076857b76291175245dd974804b408483091d1e28b00f6") depends_on("python@3.6:", type=("build", "run")) - depends_on("py-setuptools@42:", type="build") - depends_on("py-setuptools-scm@3.4:+toml", type="build") + depends_on("python@3.8:", type=("build", "run"), when="@2.6:") + with when("@2.6:"): + depends_on("py-hatchling", type="build") + depends_on("py-hatch-vcs", type="build") + with when("@:2.5"): + depends_on("py-setuptools@42:", type="build") + depends_on("py-setuptools-scm@3.4:+toml", type="build") depends_on("py-click@7.0.0:", type=("build", "run")) depends_on("py-numpy", type=("build", "run")) depends_on("py-uhi@0.2.1:", type=("build", "run"))