Files
spack/var/spack/repos/builtin/packages/prod-util/package.py
Harmen Stoppels b7993317ea Improve type hints for package API (#47576)
by disentangling `package_base`, `builder` and `directives`.
2024-11-15 09:13:10 +01:00

39 lines
1.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)
from spack.package import *
class ProdUtil(CMakePackage):
"""
Product utilities for the NCEP models.
This is part of NOAA's NCEPLIBS project."""
homepage = "https://github.com/NOAA-EMC/NCEPLIBS-prod_util"
url = "https://github.com/NOAA-EMC/NCEPLIBS-prod_util/archive/refs/tags/v1.2.2.tar.gz"
git = "https://github.com/NOAA-EMC/NCEPLIBS-prod_util"
maintainers("AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett")
version("develop", branch="develop")
version("2.1.1", sha256="2f7507fa378a44f42b971f60de8152387c311bfa9c5c05a274c87b43a143aacd")
version("2.1.0", sha256="fa7df4a82dae269ffb347b9007376fb0d9979c17c4974814ea82204b12d70ea5")
version(
"1.2.2",
sha256="c51b903ea5a046cb9b545b5c04fd28647c58b4ab6182e61710f0287846350ef8",
deprecated=True,
)
depends_on("c", type="build")
depends_on("fortran", type="build")
depends_on("w3nco", when="@1")
depends_on("w3emc", when="@2:")
def check(self):
with working_dir(self.build_directory):
make("test")