# -*- 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-plumbum
version             2.0.2

maintainers         nomaintainer

categories-append   devel
description         Plumbum: Shell Combinators for Python
long_description    Plumbum (Latin for lead, which was used to create pipes \
                    back in the day) is a small yet feature-rich library for \
                    shell script-like programs in Python. \
                    The motto of the library is \"Never write \
                    shell scripts again\", and thus it attempts to mimic the \
                    shell syntax (\"shell combinators\") where it makes sense, \
                    while keeping it all pythonic and cross-platform.

license             MIT
supported_archs     noarch
platforms           {darwin any}

homepage            https://plumbum.readthedocs.org

checksums           rmd160  27cdb5c50e2d701da5c0608ef7ed940cb713218c \
                    sha256  233751d7819c9e6743ec1c2405927eb4fa52a284c7b894bd10e28106a9309a92 \
                    size    390799

python.versions     310 311 312 313 314
python.pep517_backend   hatch

if {${subport} ne ${name}} {
    depends_build-append    port:py${python.version}-hatch-vcs

    if {${python.version} < 313} {
        depends_run-append  port:py${python.version}-typing_extensions
    }
}
