# -*- 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.14.2
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  652235910ae230bfecc9ce1220f1863153f240e4 \
                    sha256  b522c7463198c6e24bd9d9c83252327502e3cc3509844141de0aad7b0aa1967d \
                    size    5188254

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

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

foreach pv {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
