# -*- 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-setuptools-rust
version             1.13.0
revision            0
categories-append   devel
license             MIT
supported_archs     noarch
platforms           {darwin any}

python.versions     310 311 312 313 314
python.rootname     setuptools_rust

maintainers         {toby @tobypeterson} openmaintainer

description         Setuptools Rust extension plugin
long_description    {*}${description}

homepage            https://github.com/PyO3/setuptools-rust

checksums           rmd160  8f5b803579762bb3c4809a766b3ad2fcd08af9b1 \
                    sha256  f2afcf4baeee689910ce49cfa8aad4e08cce72f417449bcc32891b8664fdc726 \
                    size    314100

if {${name} ne ${subport}} {
    depends_build-append \
                        port:py${python.version}-setuptools_scm

    depends_run-append  port:py${python.version}-semantic_version \
                        port:py${python.version}-typing_extensions \
                        port:cargo \
                        port:rust
}
