# -*- 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-astroscrappy
version             1.3.0
revision            0

categories-append   science
license             BSD
maintainers         {aronnax @lpsinger} openmaintainer

description         Speedy Cosmic Ray Annihilation Package in Python
long_description    Astro-SCRAPPY is designed to detect cosmic rays in images \
                    (numpy arrays), originally based on Pieter van Dokkum’s L.A.Cosmic algorithm.

homepage            https://github.com/astropy/astroscrappy

checksums           rmd160  a7649d35535e43f61c96d5362de4882d49ba2366 \
                    sha256  b868079d3e9a2a83f02e2a22a4074fdf2bf115ce3d3038575e6170235c3bf2ca \
                    size    562575

python.versions     313

if {${subport} ne ${name}} {
    depends_build-append \
                    port:py${python.version}-cython \
                    port:py${python.version}-extension-helpers \
                    port:py${python.version}-setuptools_scm

    depends_lib-append \
                    port:py${python.version}-astropy \
                    port:py${python.version}-numpy

    test.run        yes
    test.dir        ${destroot}${python.pkgd}
    test.env-append PYTHONPATH=${destroot}${python.pkgd}
}
