spack/var/spack/repos/builtin/packages/nf-tower-cli/package.py
Gregory Becker 859745f1a9 Run audits on windows
Add debug log for external detection tests. The debug log
is used to print which test is being executed.

Skip version audit on Windows where appropriate
2024-04-29 14:13:10 +02:00

122 lines
5.2 KiB
Python

# 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 platform
from spack.package import *
class NfTowerCli(Package):
"""Tower on the Command Line brings Nextflow Tower concepts
including Pipelines, Actions and Compute Environments
to the terminal.
"""
homepage = "https://github.com/seqeralabs/tower-cli"
maintainers("marcodelapierre")
skip_version_audit = ["platform=windows"]
if platform.machine() == "x86_64":
if platform.system() == "Darwin":
version(
"0.9.2",
sha256="e96c036401c21b4c9b0379a4099192161d94f7567ea16313e7147d6f75828394",
url="https://github.com/seqeralabs/tower-cli/releases/download/v0.9.2/tw-osx-x86_64",
expand=False,
)
version(
"0.8.0",
sha256="c32f9ad48a1a49f1aa62a496b253f24423ae361c1309740f22c429de7e9cc75a",
url="https://github.com/seqeralabs/tower-cli/releases/download/v0.8.0/tw-osx-x86_64",
expand=False,
)
version(
"0.7.2",
sha256="b72093af9c8d61e0150eb9d56cedb67afc982d2432221ae0819aaa0c8826ff2b",
url="https://github.com/seqeralabs/tower-cli/releases/download/v0.7.2/tw-0.7.2-osx-x86_64",
expand=False,
)
version(
"0.7.1",
sha256="a4731d0d7f2c2d4219758126a8ee0b22a0a68464329d4be0a025ad7eb191e5c0",
url="https://github.com/seqeralabs/tower-cli/releases/download/v0.7.1/tw-0.7.1-osx-x86_64",
expand=False,
)
version(
"0.7.0",
sha256="b1b3ade4231de2c7303832bac406510c9de171d07d6384a54945903f5123f772",
url="https://github.com/seqeralabs/tower-cli/releases/download/v0.7.0/tw-0.7.0-osx-x86_64",
expand=False,
)
version(
"0.6.5",
sha256="8e7369611f3617bad3e76264d93fe467c6039c86af9f18e26142dee5df1e7346",
url="https://github.com/seqeralabs/tower-cli/releases/download/v0.6.5/tw-0.6.5-osx-x86_64",
expand=False,
)
version(
"0.6.2",
sha256="2bcc17687d58d4c888e8d57b7f2f769a2940afb3266dc3c6c48b0af0cb490d91",
url="https://github.com/seqeralabs/tower-cli/releases/download/v0.6.2/tw-0.6.2-osx-x86_64",
expand=False,
)
elif platform.system() == "Linux":
version(
"0.9.2",
sha256="1b96696219d922aaa1a5e09f4a018b34c38806c134234b7f9bde19c92f04ab64",
url="https://github.com/seqeralabs/tower-cli/releases/download/v0.9.2/tw-linux-x86_64",
expand=False,
)
version(
"0.8.0",
sha256="c0d08bbf3059296e4819d33c6ff9282cfdd4d97087213c2d9aa0b5943ced60f4",
url="https://github.com/seqeralabs/tower-cli/releases/download/v0.8.0/tw-linux-x86_64",
expand=False,
)
version(
"0.7.2",
sha256="a66d1655d2f3d83db160a890e6b3f20f4573978aa9e8ea5d6e505958a2980e72",
url="https://github.com/seqeralabs/tower-cli/releases/download/v0.7.2/tw-0.7.2-linux-x86_64",
expand=False,
)
version(
"0.7.1",
sha256="f3f8cf6b241f8935d4d90bd271809ca4cd7157ac476822483f458edbe54a1fa8",
url="https://github.com/seqeralabs/tower-cli/releases/download/v0.7.1/tw-0.7.1-linux-x86_64",
expand=False,
)
version(
"0.7.0",
sha256="651f564b80585c9060639f1a8fc82966f81becb0ab3e3ba34e53baf3baabff39",
url="https://github.com/seqeralabs/tower-cli/releases/download/v0.7.0/tw-0.7.0-linux-x86_64",
expand=False,
)
version(
"0.6.5",
sha256="0d1f3a6f53694000c1764bd3b40ce141f4b8923d477e2bdfdce75c66de95be00",
url="https://github.com/seqeralabs/tower-cli/releases/download/v0.6.5/tw-0.6.5-linux-x86_64",
expand=False,
)
version(
"0.6.2",
sha256="02c6d141416b046b6e8b6f9723331fe0e39d37faa3561c47c152df4d33b37e50",
url="https://github.com/seqeralabs/tower-cli/releases/download/v0.6.2/tw-0.6.2-linux-x86_64",
expand=False,
)
elif platform.machine() == "arm64":
if platform.system() == "Darwin":
version(
"0.9.2",
sha256="31ffa200aea3e70533222cab08a212080b889d933ac7ee2b8ece22c51d3e8c1a",
url="https://github.com/seqeralabs/tower-cli/releases/download/v0.9.2/tw-osx-arm64",
expand=False,
)
def install(self, spec, prefix):
mkdirp(prefix.bin)
install(self.stage.archive_file, join_path(prefix.bin, "tw"))
set_executable(join_path(prefix.bin, "tw"))