# -*- 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-spiceypy
version             8.3.0

categories-append   science
license             MIT
maintainers         nomaintainer

description         SpiceyPy is a python wrapper for the SPICE Toolkit.
long_description    {*}${description} SPICE provides access and tools to \
                    interact with planetary and spacecraft ephemeris and \
                    ancillary engineering information.

homepage            https://spiceypy.readthedocs.io/

checksums           rmd160  c5472bd9322982abd518baf2187eb4a6cdbf5bd8 \
                    sha256  abe5223a80c253c5fa3318a52e80789807d0b1f4dbbc464dc92b35b83024b018 \
                    size    652647

python.versions     310 311 312 313 314 315

python.pep517_backend scikit

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-cython
    depends_lib-append \
                    port:cspice \
                    port:py${python.version}-numpy
    depends_test-append \
                    port:py${python.version}-pandas \
                    port:py${python.version}-pytest-benchmark

    patchfiles-append \
                    patch-test_kernels_overcome_80_char_string_len_limit.patch

    test.run        yes
    test.dir        ${destroot}${python.pkgd}
    test.args-append \
                    --benchmark-disable
}
