# -*- 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.15.1
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  7fbc281ab80fdc57738a7b381a535633e3c45ea3 \
                    sha256  444a78123c9837e8c9f5adfbf2b8b0a72139587eb49d6b368038b0521136fc43 \
                    size    5189156

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

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

foreach pv {314 313 312 311 310 39} {
    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
