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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# 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 SingularityHpc(PythonPackage):
"""Local filesystem registry for containers (intended for HPC)
using Lmod or Environment Modules. Works for users and admins.
"""
maintainers("marcodelapierre", "vsoch")
homepage = "https://github.com/singularityhub/singularity-hpc"
pypi = "singularity-hpc/singularity-hpc-0.1.16.tar.gz"
license("MPL-2.0")
version("0.1.16", sha256="00aca234259b962914987ec725181dafc11096fa721d610485615585753d769f")
version("0.1.12", sha256="760cbcae7b07b319ff6147938578648ce6f0af760701e62bf5f88649ef08f793")
variant(
"runtime",
default="none",
description="Container runtime installed by Spack for this package",
values=("none", "singularityce", "singularity", "podman"),
multi=False,
)
variant(
"modules",
default="none",
description="Module system installed by Spack for this package",
values=("none", "lmod", "environment-modules"),
multi=False,
)
depends_on("python@3.3:", type=("build", "run"))
depends_on("py-setuptools", type="build")
depends_on("py-pytest-runner", type="build")
depends_on("py-spython@0.2.0:", type=("build", "run"))
depends_on("py-jinja2", type=("build", "run"))
depends_on("py-jsonschema", type=("build", "run"))
depends_on("py-ruamel-yaml", type=("build", "run"))
depends_on("py-requests", type=("build", "run"))
depends_on("singularityce@3:", when="runtime=singularityce", type="run")
depends_on("singularity@3:", when="runtime=singularity", type="run")
depends_on("podman", when="runtime=podman", type="run")
depends_on("lmod", when="modules=lmod", type="run")
depends_on("environment-modules", when="modules=environment-modules", type="run")
|