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

Add package recipe for ACCESS-TEST-model #206

Merged
merged 5 commits into from
Mar 6, 2025
Merged
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
30 changes: 30 additions & 0 deletions packages/access-test-model/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

# Based on spack/var/spack/repos/builtin/packages/fiat/package.py

from spack.package import *


class AccessTestModel(CMakePackage):
"""ACCESS Test Model is a small test FORTRAN model component
used to test CI workflows."""

homepage = "https://github.com/ACCESS-NRI/access-test-model"
git = "https://github.com/ACCESS-NRI/access-test-model.git"

maintainers("aidanheerdegen", "codegat", "harshula")

license("Apache-2.0")

version("main", branch="main", no_cache=True)

variant("mpi", default=True, description="Use MPI")

depends_on("mpi", when="+mpi")

root_cmakelists_dir = "stub"

def url_for_version(self, version):
return "https://github.com/ACCESS-NRI/access-test-model/tarball/{0}".format(version)