# -*- 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             0.12.1
platforms           darwin
license             Apache-2
maintainers         nomaintainer
supported_archs     noarch

description         Setuptools plugin for Rust extensions
long_description    ${description}

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

checksums           rmd160  1464936bc354acd0c3b4b7853b0959b19fb83c77 \
                    sha256  647009e924f0ae439c7f3e0141a184a69ad247ecb9044c511dabde232d3d570e \
                    size    282568

python.versions     37 38 39

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-pip \
                    port:py${python.version}-setuptools_scm \
                    port:py${python.version}-toml \
                    port:py${python.version}-wheel
        
    depends_run-append \
                    port:cargo \
                    port:py${python.version}-semantic_version \
                    port:rust

    livecheck.type  none
}
