Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyrobird: new package #676

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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("[email protected]:", 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"))
Loading