# -*- 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-attrs
version             26.1.0
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             MIT

python.versions     27 310 311 312 313 314

maintainers         {khindenburg @kurthindenburg} openmaintainer

description         Attributes without boilerplate

long_description    attrs is a Python package with class decorators that \
                    ease the chores of implementing the most common \
                    attribute-related object protocols:

homepage            https://github.com/python-attrs/attrs

checksums           md5     633953d1aa39cfa76c733a20fdd9c196 \
                    rmd160  bf5b674ca8aa670e1fad4aa7e598a675def814b7 \
                    sha256  d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32 \
                    size    952055

python.pep517_backend   hatch

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        version     21.4.0
        revision    0

        checksums   rmd160  9374ffd2f02c588f82e9f3e32e3400a80bc4d711 \
                    sha256  626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd \
                    size    201839

        depends_build-append \
                    port:py${python.version}-setuptools
    } else {
        depends_build-append \
                    port:py${python.version}-hatch-fancy-pypi-readme \
                    port:py${python.version}-hatch-vcs

        depends_test-append \
                        port:py${python.version}-cloudpickle \
                        port:py${python.version}-hypothesis \
                        port:py${python.version}-zopeinterface

        test.run        yes
    }

    livecheck.type      none
}
