|
| 1 | +# Copyright Spack Project Developers. See COPYRIGHT file for details. |
| 2 | +# |
| 3 | +# SPDX-License-Identifier: (Apache-2.0 OR MIT) |
| 4 | + |
| 5 | +from spack.package import * |
| 6 | + |
| 7 | + |
| 8 | +class Uwtools(PythonPackage): |
| 9 | + """UW Tools is a modern, open-source Python package that helps |
| 10 | + automate common tasks needed for many standard numerical weather |
| 11 | + prediction (NWP) workflows. It also provides drivers to automate |
| 12 | + the configuration and execution of Unified Forecast System (UFS) |
| 13 | + components, providing flexibility, interoperability, and |
| 14 | + usability to various UFS Applications.""" |
| 15 | + |
| 16 | + homepage = "https://uwtools.readthedocs.io/en/stable/" |
| 17 | + url = "https://github.com/ufs-community/uwtools/archive/refs/tags/v2.7.1.tar.gz" |
| 18 | + git = "https://github.com/ufs-community/uwtools.git" |
| 19 | + |
| 20 | + maintainers("NaureenBharwaniNOAA", "christinaholtNOAA", "elcarpenterNOAA", "maddenp-cu") |
| 21 | + |
| 22 | + license("GPL-2.0-or-later", checked_by="WeirAE") |
| 23 | + |
| 24 | + version("2.7.1", sha256="2764aa5fa9f4ebb3eb43bf6ee3cf9e37d3889f374bfc536faabdfb3dc46b26c8") |
| 25 | + version("2.7.0", sha256="778c935256c9511d81e32a7548412ace3a1901d8afc22bdb042639156e45bcc5") |
| 26 | + version("2.6.3", sha256="0b9cd205c91202cf20eef64fa462176b37d6fbbceb752097a065d1772855bfc4") |
| 27 | + version("2.6.2", sha256="d0922ddd2b3bdbeb925c2e4694f929f3e966145d2929e74ab9f9c9ecd27b674a") |
| 28 | + version("2.6.1", sha256="cd3fb06b153ddba3b5256c79c3be4d84c6b388b7c2f7737e8b32bcb28081774b") |
| 29 | + version("2.6.0", sha256="25f350a3f69b29a4b685ce9c93edfc11a39b99192040bc44250495c0e6a09b68") |
| 30 | + version("2.5.3", sha256="fec29a1c1b07788d3144fa45a263566bab6cfd286da0cfbefe2b2a02f7bacad1") |
| 31 | + version("2.5.2", sha256="358da7473205456720e2f8231a43ad7ef0b9946dfdad41ea542963f444d258b9") |
| 32 | + version("2.5.1", sha256="f389f63195492196c8009d5843a3861ad350b5fd1cea1fdb8a6bfdc7cbfd660f") |
| 33 | + version("2.5.0", sha256="246f1cb1d3b7c507eae833f5223d3be5efaea16204a71cafba820901edc0e19e") |
| 34 | + |
| 35 | + depends_on("py-pip", type="build") |
| 36 | + depends_on( "[email protected]:3.11") |
| 37 | + depends_on("py-setuptools", type="build") |
| 38 | + |
| 39 | + |
| 40 | + depends_on( "[email protected]:", when="@:2.6.3") |
| 41 | + depends_on( "[email protected]:", when="@2.6.3:") |
| 42 | + depends_on( "[email protected]:", when="@2.7.1:") |
| 43 | + depends_on( "[email protected]:4.24") |
| 44 | + |
| 45 | + |
| 46 | + depends_on( "[email protected]", when="@2.6.3:") |
| 47 | + |
| 48 | + build_directory = "src" |
0 commit comments