Skip to content

Commit

Permalink
Merge branch 'update_pkg_config_jun24' of github.com:AlexanderRichert…
Browse files Browse the repository at this point in the history
…-NOAA/spack-stack into update_pkg_config_jun24
  • Loading branch information
AlexanderRichert-NOAA committed Jun 13, 2024
2 parents ef08f56 + 7e0bf3e commit 32e75ea
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 1 deletion.
1 change: 1 addition & 0 deletions configs/templates/unified-dev/spack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spack:
- jedi-tools-env
- jedi-ufs-env
- jedi-um-env
- neptune-env
- soca-env
- ufs-srw-app-env
- ufs-weather-model-env
Expand Down
2 changes: 2 additions & 0 deletions spack-ext/repos/spack-stack/packages/neptune-env/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,7 @@ class NeptuneEnv(BundlePackage):
depends_on("py-pyyaml", type="run")
depends_on("py-scipy", type="run")
depends_on("py-xarray", type="run")
depends_on("py-xnrl", type="run")
depends_on("py-pytest", type="run")

# There is no need for install() since there is no code.
51 changes: 51 additions & 0 deletions spack-ext/repos/spack-stack/packages/py-xnrl/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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 PyXnrl(PythonPackage):
"""xNRL helps you read NRL NWP output into xarray Datasets nested within Pandas DataFrames."""

#homepage = "https://github.nrlmry.navy.mil/Python/xnrl"
url = "https://github.nrlmry.navy.mil/Python/xnrl/archive/refs/tags/2024.05.23.tar.gz"
git = "https://github.nrlmry.navy.mil/Python/xnrl.git"

maintainers("climbfuji")

license("custom")

version("main", branch="main")
version("2024.05.23", sha256="73611e72f4a192c9b93039381fdd085c7f1fe09fbdff4bdeb285f744ad2fb05d")

variant("numba", default=False, description="Build packages that require py-numba")

depends_on("[email protected]:", type=("build", "run"))
depends_on("py-setuptools", type="build")
depends_on("py-poetry", type="build")

depends_on("py-metpy", type=("build", "run"))
depends_on("py-dask +delayed", type=("build", "run"))
depends_on("py-h5netcdf", type=("build", "run"))
depends_on("py-netcdf4", type=("build", "run"))
depends_on("py-numpy", type=("build", "run"))
depends_on("py-tqdm", type=("build", "run"))
depends_on("py-xarray", type=("build", "run"))
depends_on("py-ecmwflibs", type=("build", "run"))
depends_on("eccodes", type=("build", "run"))
depends_on("py-cfgrib", type=("build", "run"))
depends_on("py-cf-xarray", type=("build", "run"))
# Does not exist in spack, and is deprecated - ignore
#depends_on("py-pygrib", type=("build", "run"))
depends_on("py-cartopy", type=("build", "run"))
depends_on("py-cftime", type=("build", "run"))
depends_on("py-h5py", type=("build", "run"))
depends_on("py-matplotlib", type=("build", "run"))
# Turn off performance variant to avoid py-numba and llvm compiler dependency
depends_on("py-pandas ~performance", type=("build", "run"), when="~numba")
depends_on("py-pandas +performance", type=("build", "run"), when="+numba")
depends_on("py-scipy", type=("build", "run"))
depends_on("py-xesmf", type=("build", "run"), when="+numba")
depends_on("py-xskillscore", type=("build", "run"), when="+numba")

0 comments on commit 32e75ea

Please sign in to comment.