File indexing completed on 2025-01-18 09:15:27
0001
0002
0003
0004
0005
0006 from spack.package import *
0007
0008
0009 class Npsim(CMakePackage):
0010 """DD4hep-based simulation plugins, front-end, and related utilities."""
0011
0012 homepage = "https://github.com/eic/npsim"
0013 url = "https://github.com/eic/npsim/archive/refs/tags/v1.0.0.zip"
0014 git = "https://github.com/eic/npsim.git"
0015 list_url = "https://github.com/eic/npsim/tags"
0016
0017 maintainers = ["wdconinc"]
0018
0019 version("main", branch="main")
0020 version("1.4.3", sha256="4d636863d02d70897ddf036b4003e47f7e0c85125268f92f880c98e25bd38ce4")
0021 version("1.4.2", sha256="7cd83a6cceea42c9a74cbb10fbd069b658c1bb263fce507d42e62570f5c040cf")
0022 version("1.4.1", sha256="74d1c2c8fb8e8a05d9daaf228214f2054e3147f30ec13581e99f7549df8d4be3")
0023 version("1.4.0", sha256="77c40277c3439b191e5f7508263b4b0a73c05bda00c8c1408065a2e4479de688")
0024 version(
0025 "1.3.0",
0026 sha256="6870ca80c6255d1a35b0d05c70e86c7f252e8401dfb53759cbec8a93c5d74794",
0027 )
0028 version(
0029 "1.2.0",
0030 sha256="2a7e039dfcf8ed4c8a22fc9cb00bf73859537b3ee83a5bb128cc1ef451763865",
0031 )
0032 version(
0033 "1.1.1",
0034 sha256="d1a34efd22832f0da863e5712d342153ca63520acccf9516b47ff3cb2ed4e935",
0035 )
0036 version(
0037 "1.1.0",
0038 sha256="0ca9a88560eae22ecce3ffee4cdb38ee21bea8fa7330fded8f896b93679bf5a3",
0039 )
0040 version(
0041 "1.0.0",
0042 sha256="eccfb93ad47a3788c0d03a522c640e4510b3a3cba2771e92b136a246b7211f50",
0043 )
0044
0045 variant("http", default=False, description="Build web display services")
0046 variant("geocad", default=False, description="Build the geocad interface")
0047
0048 depends_on("cxx", type="build")
0049
0050 depends_on("fmt +shared")
0051 depends_on("root")
0052 depends_on("py-pyyaml", type="build")
0053 depends_on("py-jinja2", type="build")
0054 depends_on("spdlog")
0055 depends_on("root +http", when="+http")
0056 depends_on("dd4hep +ddg4")
0057 depends_on("dd4hep@1.18:")
0058 depends_on("opencascade", when="+geocad")
0059 depends_on("py-six")
0060
0061 def cmake_args(self):
0062 args = [self.define_from_variant("USE_GEOCAD", "geocad")]
0063 args.append("-DCMAKE_CXX_STANDARD=17")
0064 return args