# -*- 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-hatch-vcs
version             0.4.0
revision            0

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

description         Hatch plugin for versioning with your preferred VCS
long_description    {*}${description}

homepage            https://github.com/ofek/hatch-vcs

checksums           rmd160  adeb70d3c11d1ad8aef740769a4612fdb8c385f6 \
                    sha256  093810748fe01db0d451fabcf2c1ac2688caefd232d4ede967090b1c1b07d9f7 \
                    size    10917

python.versions     37 38 39 310 311 312 313
python.pep517       yes
python.pep517_backend   hatch

if {${name} ne ${subport}} {
    if {${python.version} == 37} {
        version     0.3.0
        revision    0
        checksums   rmd160  cbd9ca7141c5958fe1cfddcfd15f189b467fd4ab \
                    sha256  cec5107cfce482c67f8bc96f18bbc320c9aa0d068180e14ad317bbee5a153fee \
                    size    10172
    }
    distname            hatch_vcs-${version}

    depends_lib-append \
                    port:py${python.version}-hatchling \
                    port:py${python.version}-setuptools_scm
}