# -*- 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-pynndescent
version             0.7.0
revision            0

categories-append   math
platforms           {darwin any}
supported_archs     noarch
license             BSD
maintainers         {reneeotten @reneeotten} openmaintainer

description         Nearest Neighbor Descent
long_description    {*}${description}

homepage            https://github.com/lmcinnes/pynndescent

checksums           rmd160  bd0a7dcc413c699aa9eda89a8d5816cd3d816853 \
                    sha256  54f097a003bfdb917225e1bcf55c4027e283a37a2b5e3cae4b4aaf21197f6d1c \
                    size    3040551

python.versions     313 314

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-joblib \
                    port:py${python.version}-llvmlite \
                    port:py${python.version}-numba \
                    port:py${python.version}-scikit-learn \
                    port:py${python.version}-scipy

    depends_test-append \
                    port:py${python.version}-coverage \
                    port:py${python.version}-cffi \
                    port:py${python.version}-pandas \
                    port:py${python.version}-psutil

    test.run        yes
}
