Skip to content

Commit

Permalink
pyrobird: new package
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc authored Nov 4, 2024
1 parent 79be358 commit 0487e9a
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions packages/pyrobird/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# 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)

import llnl.util.tty as tty

from spack.package import *


class Pyrobird(PythonPackage):
"""Phoenix based event display."""

homepage = "https://eic.github.io/firebird/"
pypi = "pyrobird/pyrobird-0.1.23.tar.gz"
git = "https://github.com/eic/firebird.git"

maintainers("wdconinc")

license("LGPL-3.0-or-later", checked_by="wdconinc")

version("0.1.23", sha256="ebc122af0b574e6f1a10831c9577084335c6674ca9c5b6fcb58b4ed26ea72c59")

variant("test", default=False, description="Enable test functionality")
variant("batch", default=False, description="Enable batch functionality")
variant("xrootd", default=False, description="Enable XRootD functionality")

depends_on("py-hatchling", type="build")
depends_on("py-click", type=("build", "run"))
depends_on("py-rich", type=("build", "run"))
depends_on("py-pyyaml", type=("build", "run"))
depends_on("py-flask", type=("build", "run"))
depends_on("py-flask-cors", type=("build", "run"))
depends_on("py-flask-compress", type=("build", "run"))
depends_on("py-json5", type=("build", "run"))
depends_on("py-uproot", type=("build", "run"))
depends_on("py-pytest", type=("build", "run"), when="+test")
depends_on("py-pyppeteer", type=("build", "run"), when="+batch")
depends_on("py-fsspec-xrootd", type=("build", "run"), when="+xrootd")
depends_on("xrootd +python", type=("build", "run"), when="+xrootd")

@when("@:0.1.23")
@run_before("install")
def fix_link(self):
symlink(self.build_directory, join_path(self.build_directory, "src"))

0 comments on commit 0487e9a

Please sign in to comment.