# -*- 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             25.3.0
revision            0
categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             MIT

python.versions     27 35 36 37 38 39 310 311 312 313

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 173fe452e1fe986051d9bc194ed59525 \
                    rmd160 c9200a0f54111f6728b5eb798948fdfe4f285183 \
                    sha256 75d7cefc7fb576747b2c81b4442d4d4a1ce0900973527c011d1030fd3bf4af1b \
                    size   812032

python.pep517_backend   hatch

if {${name} ne ${subport}} {
    if {${python.version} <= 36} {
        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}-hypothesis \
        port:py${python.version}-pytest \
        port:py${python.version}-zopeinterface

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

        depends_test-append \
                        port:py${python.version}-six \
                        port:py${python.version}-typing

        checksums       rmd160  9374ffd2f02c588f82e9f3e32e3400a80bc4d711 \
                        sha256  626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd \
                        size    201839
    } elseif {${python.version} == 35} {
        version         22.1.0
        revision        0

        checksums       rmd160  87968fa8c7cd71f46bb3bebe10bb0e54cd0ab42f \
                        sha256  29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6 \
                        size    201288
    } elseif {${python.version} == 36} {
        version         22.2.0
        revision        0

        checksums       rmd160  c10812a3ab93ef18be91b115e088acfd9d89ed57 \
                        sha256  c9227bfc2f01993c03f68db37d1d15c9690188323c067c641f1a35ca58185f99 \
                        size    215900
    } elseif {${python.version} == 37} {
        version         24.2.0
        revision        0

        checksums       rmd160  bc65ecbb838f23ebd36e65bebf134a0e28313f26 \
                        sha256  5cfb1b9148b5b086569baec03f20d7b6bf3bcacc9a42bebf87ffaaca362f6346 \
                        size    792678
    }

    test.run            yes

    livecheck.type      none
}
