# -*- 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.1.2

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  0662928c49bec9c4ce996564cbe6cdb6652be137 \
                    sha256  26a12b2b9577bba28f2962b6628e81cad4f790c21b969d3770bbafb291797e83 \
                    size    643351

python.versions     310 311 312 313 314

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

    test.run        yes
    test.dir        ${destroot}${python.pkgd}
}
