# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                py-reproject
version             0.15.0
revision            0

categories-append   science
license             BSD
maintainers         {aronnax @lpsinger} openmaintainer
description         Astropy affiliated package for image reprojection
long_description    {*}${description}
homepage            https://reproject.readthedocs.io/

checksums           rmd160  b39fd7cb6f8b9a915d9612785dc8a84363eaa926 \
                    sha256  97da66c6d5c81a797c4fc7c2b14a7fe72de445e83731775a3748b6ae9704a84e \
                    size    1602800

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    if {${python.version} == 310} {
        version     0.14.1
        revision    0
        checksums   rmd160  7d47fab92522395325a65e6654fa130e347be894 \
                    sha256  53c8ea279b8b557f33a1e430af5e053cd747002440e072bae6ad9302d46be579 \
                    size    874343
        patchfiles  patch-pyproject-1.14.1.toml.diff
    } else {
        patchfiles  patch-pyproject.toml.diff
    }

    depends_build-append \
                    port:py${python.version}-cython \
                    port:py${python.version}-extension-helpers \
                    port:py${python.version}-numpy \
                    port:py${python.version}-setuptools_scm

    depends_run-append \
                    port:py${python.version}-astropy \
                    port:py${python.version}-astropy-healpix \
                    port:py${python.version}-cloudpickle \
                    port:py${python.version}-dask \
                    port:py${python.version}-fsspec \
                    port:py${python.version}-numpy \
                    port:py${python.version}-scipy \
                    port:py${python.version}-zarr
}
