# -*- 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.10.2
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  bdb9e465f76debe7ec7d8369e9ae16f06d3675e1 \
                    sha256  08509910ce6d1fadeed69cb0880d4d4fcb77739c6af9bd8fb4419391a3ca4c6b \
                    size    993651

python.versions     39 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}
}
