Skip to content
Draft
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions repos/spack_repo/builtin/packages/py_cachetools/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ class PyCachetools(PythonPackage):

license("MIT")

version("7.1.4", sha256="437f55a4e0c1b01a4f3077cc470e6991d47430970e36fbcb77e2be0df4fc1cd6")
version("7.1.3", sha256="135cfe944bc3c1e805505f65dae0bef375a2f96261171ab66c79ef77d0bda39d")
version("7.1.2", sha256="c1373e3cad0933dfb46bb04d04ef67b5204f8220eb906096dd89a76196053d57")
version("7.1.1", sha256="27bdf856d68fd3c71c26c01b5edc312124ed427524d1ddb31aa2b7746fe20d4b")
version("6.2.6", sha256="16c33e1f276b9a9c0b49ab5782d901e3ad3de0dd6da9bf9bcd29ac5672f2f9e6")
version("6.2.4", sha256="82c5c05585e70b6ba2d3ae09ea60b79548872185d2f24ae1f2709d37299fd607")
Expand Down
1 change: 1 addition & 0 deletions repos/spack_repo/builtin/packages/py_dask/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class PyDask(PythonPackage):
version("2025.3.0", sha256="322834f44ebc24abeb564c56ccb817c97d6e7af6be71ad0ad96b78b51f2e0e85")
version("2024.12.1", sha256="bac809af21c2dd7eb06827bccbfc612504f3ee6435580e548af912828f823195")
version("2024.7.1", sha256="dbaef2d50efee841a9d981a218cfeb50392fc9a95e0403b6d680450e4f50d531")
version("2024.2.1", sha256="9504a1e9f5d8e5403fae931f9f1660d41f510f48895ccefce856ec6a4c2198d8")
version("2023.4.1", sha256="9dc72ebb509f58f3fe518c12dd5a488c67123fdd66ccb0b968b34fd11e512153")
version("2022.10.2", sha256="42cb43f601709575fa46ce09e74bea83fdd464187024f56954e09d9b428ceaab")
version("2021.6.2", sha256="8588fcd1a42224b7cfcd2ebc8ad616734abb6b1a4517efd52d89c7dd66eb91f8")
Expand Down
37 changes: 37 additions & 0 deletions repos/spack_repo/builtin/packages/py_pykdtree/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack_repo.builtin.build_systems.python import PythonPackage

from spack.package import *


class PyPykdtree(PythonPackage):
"""pykdtree is a kd-tree implementation for fast nearest neighbour search in Python."""

homepage = "https://github.com/storpipfugl/pykdtree"
pypi = "pykdtree/pykdtree-1.4.3.tar.gz"

license("LGPL-2.1-or-later")

# Add the relevant versions and their SHA-256 checksums from PyPI
version("1.4.3", sha256="4b88d3c907b8a5bf0727c9b8cf44de8b4380eb9a3ff170942c7e0f63b21b7ff3")

# Build system backends
depends_on("python@3.9:", type=("build", "run"))
depends_on("py-setuptools", type="build")
depends_on("py-cython", type="build")

# Runtime and Link Dependencies
depends_on("py-numpy@1.16:", type=("build", "run"))

# OpenMP is required for multi-threaded queries
depends_on("llvm-openmp", when="%apple-clang", type=("build", "link"))

def install_options(self, spec, prefix):
# Optional: Hand over specific compilation variables if building on macOS
options = []
if "%apple-clang" in spec:
options.append("--build-option=--use-openmp")
return options
64 changes: 64 additions & 0 deletions repos/spack_repo/builtin/packages/py_pyresample/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack_repo.builtin.build_systems.python import PythonPackage

from spack.package import *


class PyPyresample(PythonPackage):
"""A package for resampling geospatial image data"""

homepage = "https://github.com/pytroll/pyresample"
pypi = "pyresample/pyresample-1.35.0.tar.gz"

license("LGPL-3.0-or-later")

version("1.35.0", sha256="95f64734d63632ca642bc7bf4bce057c2ecac60f05fafd73c881bf68403ab5bb")
version("1.34.2", sha256="094e959e3e31a547d39ce1a940e5cdb23845a5c458a0fc244f2e4e5135e4f797")
version("1.34.1", sha256="6e0e7ccf090bcabf4bfc8818d7ff633741fddf9784fe90b4add86f925b5b72f1")
version("1.34.0", sha256="a0cd05327f8015862809da8704e93943890f02194d11d97ede29576f6a6730d4")

depends_on("py-setuptools", type="build")
depends_on("py-setuptools-scm +toml", type="build")

depends_on("python@3.11:", when="@1.34.0:", type=("build", "run"))

depends_on("py-configobj", type=("build", "run"))
depends_on("py-cython", type=("build", "run"))
depends_on("py-donfig", type=("build", "run"))
depends_on("py-numexpr", type=("build", "run"))
depends_on("py-numpy", type=("build", "run"))
depends_on("py-platformdirs", type=("build", "run"))
depends_on("py-pykdtree", type=("build", "run"))
depends_on("py-pyproj", type=("build", "run"))
depends_on("py-pyyaml", type=("build", "run"))
depends_on("py-shapely", type=("build", "run"))
depends_on("py-versioneer", type=("build", "run"))

# Optional functionality dependencies
depends_on("py-dask", type=("build", "run"))
depends_on("py-odc-geo", type=("build", "run"))
depends_on("py-rasterio", type=("build", "run"))
depends_on("py-scipy", type=("build", "run"))
depends_on("py-xarray", type=("build", "run"))

variant("plotting", default=False, description="Enable plotting functionality")
variant("tests", default=False, description="Dependencies to run test suites")

with when("+plotting"):
depends_on("py-cartopy", type=("build", "run"))
depends_on("py-matplotlib", type=("build", "run"))

with when("+tests"):
depends_on("py-cartopy", type="test")
depends_on("py-dask", type="test")
depends_on("py-matplotlib", type="test")
depends_on("py-pillow", type="test")
depends_on("py-pytest", type="test")
depends_on("py-pytest-lazy-fixtures", type="test")
depends_on("py-rasterio", type="test")
depends_on("py-scipy", type="test")
depends_on("py-xarray", type="test")
depends_on("py-zarr", type="test")
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack_repo.builtin.build_systems.python import PythonPackage

from spack.package import *


class PyPytestLazyFixtures(PythonPackage):
"""Allows you to use fixtures in @pytest.mark.parametrize."""

homepage = "https://github.com/dev-petrov/pytest-lazy-fixtures"
pypi = "pytest_lazy_fixtures/pytest_lazy_fixtures-1.4.0.tar.gz"

license("MIT")

version("1.4.0", sha256="f544b60c96b909b307558a62cc1f28f026f11e9f03d7f583a1dc636de3dbcb10")
version("1.3.4", sha256="15e12ec3ca7e2e50efb0e352ef2e3d54ec2f38a1ef084c8a2b5e28a5e1144410")

# Python version compatibility requirement
depends_on("python@3.8:", type=("build", "run"))

# Build system dependencies (PEP 517 standard via Hatchling)
depends_on("py-hatchling", type="build")

# Runtime dependencies
depends_on("py-pytest@7.1:", type=("build", "run"))
4 changes: 2 additions & 2 deletions repos/spack_repo/builtin/packages/py_xarray/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ class PyXarray(PythonPackage):
depends_on("py-packaging@21.3:", when="@2023.7:")
depends_on("py-packaging@20:", when="@0.21:")
depends_on("py-pandas@2.2:", when="@2025.7:")
depends_on("py-pandas@2.0:2.1", when="@2024.7:")
depends_on("py-pandas@1.4:2.1", when="@2023.7:")
depends_on("py-pandas@2.0:2.1", when="@2024.7:2025.6")
depends_on("py-pandas@1.4:2.1", when="@2023.7:2024.6")
depends_on("py-pandas@1.1:", when="@0.20:")
depends_on("py-pandas@1:", when="@0.18:")
depends_on("py-pandas@0.25:", when="@0.15:")
Expand Down