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

categories-append   devel
license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         Hatch is a modern, extensible Python project manager.
long_description    {*}${description}
homepage            https://github.com/ofek/hatch

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  1c740185b3ab08d61ae8c5123f5ac12717881b6d \
                    sha256  2a50ecc912adfc8122cd2ccdcc15254cdef829e5d158be9014180cd7f0fb7ea9 \
                    size    5219621

variant python310 conflicts python311 python312 python313 python314 description {Use Python 3.10} {}
variant python311 conflicts python310 python312 python313 python314 description {Use Python 3.11} {}
variant python312 conflicts python310 python311 python313 python314 description {Use Python 3.12} {}
variant python313 conflicts python310 python311 python312 python314 description {Use Python 3.13} {}
variant python314 conflicts python310 python311 python312 python313 description {Use Python 3.14} {}

if {![variant_isset python310] && ![variant_isset python311]
    && ![variant_isset python312] && ![variant_isset python314]} {
        default_variants +python313
}

foreach pv {314 313 312 311 310} {
    if {[variant_isset python${pv}]} {
        python.default_version  ${pv}
        break
    }
}

python.pep517_backend \
                    hatch

depends_build-append \
                    port:py${python.version}-hatch-vcs

depends_lib-append  port:py${python.version}-atomicwrites \
                    port:py${python.version}-click \
                    port:py${python.version}-hatchling \
                    port:py${python.version}-httpx \
                    port:py${python.version}-hyperlink \
                    port:py${python.version}-keyring \
                    port:py${python.version}-pexpect \
                    port:py${python.version}-platformdirs \
                    port:py${python.version}-pyperclip \
                    port:py${python.version}-rich \
                    port:py${python.version}-shellingham \
                    port:py${python.version}-tomli-w \
                    port:py${python.version}-tomlkit \
                    port:py${python.version}-trove-classifiers \
                    port:py${python.version}-userpath \
                    port:py${python.version}-virtualenv
