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

python.versions     27 35 36 37 38 39 310

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/hynek/attrs

checksums           rmd160  87968fa8c7cd71f46bb3bebe10bb0e54cd0ab42f \
                    sha256  29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6 \
                    size    201288

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

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

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

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

        checksums       rmd160  9374ffd2f02c588f82e9f3e32e3400a80bc4d711 \
                        sha256  626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd \
                        size    201839

    }

    test.run            yes
    test.cmd            py.test-${python.branch}
    test.target
    test.env            PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type      none
}
