# -*- 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-nanobind
version             2.12.0
revision            0

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

description         nanobind: tiny and efficient C++/Python bindings
long_description    {*}${description}

homepage            https://github.com/wjakob/nanobind

checksums           rmd160  56733af01d0639eb5dc46c5d5bdf708dbfe902cd \
                    sha256  0ae77c1a88f27153fa57045ee00f7b0a7b06b1cd3df942e95a34b38c5d0a5bee \
                    size    1002704

python.versions     310 311 312 313 314
python.pep517_backend

if {${subport} ne ${name}} {
    depends_build-append \
                    port:py${python.version}-scikit-build-core \
                    port:ninja

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