-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the pyhepmc package to the stack (#672)
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright 2013-2021 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) | ||
|
||
|
||
class PyPyhepmc(PythonPackage): | ||
"""Python bindings for HepMC3""" | ||
|
||
homepage = "https://github.com/scikit-hep/pyhepmc" | ||
pypi = "pyhepmc/pyhepmc-2.14.0.tar.gz" | ||
git = "https://github.com/scikit-hep/pyhepmc.git" | ||
|
||
tags = ["hep"] | ||
|
||
maintainers = ["jmcarcell"] | ||
|
||
version("main", branch="main") | ||
|
||
version( | ||
"2.14.0", | ||
sha256="17a6f941e4fa06d08a628990f6816d1da5e545d65f533e6f598740d2cb76ace4", | ||
) | ||
|
||
depends_on("cmake", type="build") | ||
depends_on("py-setuptools-scm", type="build") | ||
|
||
depends_on("hepmc3", type=("build", "run")) | ||
depends_on("[email protected]:", type=("build", "run")) | ||
depends_on("py-pybind11", type=("build", "run")) | ||
# In v2.14.0 a dot command is run at import time to check which formats are supported | ||
# The system dot on Alma 9 does not support any formats and importing fails so graphviz is required | ||
depends_on("graphviz", type="run") | ||
|
||
@run_before("install") | ||
def use_external_pybind11(self): | ||
filter_file("(EXTERNAL_PYBIND11.*) OFF", r"\1 ON", "CMakeLists.txt") |