Skip to content

Commit

Permalink
Fix the package
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Nov 28, 2024
1 parent 10c25e8 commit 413b9d6
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions packages/py-pyhepmc/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class PyPyhepmc(PythonPackage):
"""Python bindings for HepMC3"""

homepage = "https://github.com/scikit-hep/pyhepmc"
url = "https://github.com/scikit-hep/pyhepmc/archive/refs/tags/v2.14.0.tar.gz"
pypi = "pyhepmc/pyhepmc-2.14.0.tar.gz"
git = "https://github.com/scikit-hep/pyhepmc.git"

tags = ["hep"]
Expand All @@ -19,12 +19,17 @@ class PyPyhepmc(PythonPackage):

version(
"2.14.0",
sha256="cb20976b017edd7456492134243faf5d3091c6b9fa52bcc5c3ac6e7c6912fe52",
sha256="17a6f941e4fa06d08a628990f6816d1da5e545d65f533e6f598740d2cb76ace4",
)

depends_on("cmake", type="build")
depends_on("py-setuptools", type="build")
depends_on("py-importlib-resources", type=("build", "run"))
depends_on("py-setuptools-scm", type="build")

depends_on("hepmc3")
depends_on("[email protected]:")
depends_on("hepmc3", type=("build", "run"))
depends_on("[email protected]:", type=("build", "run"))
depends_on("py-pybind11", type=("build", "run"))
depends_on("graphviz", type="run")

@run_before("install")
def use_external_pybind11(self):
filter_file("(EXTERNAL_PYBIND11.*) OFF", r"\1 ON", "CMakeLists.txt")

0 comments on commit 413b9d6

Please sign in to comment.