# -*- 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             21.4.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  9374ffd2f02c588f82e9f3e32e3400a80bc4d711 \
                    sha256  626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd \
                    size    201839

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

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

    livecheck.type      none
}
