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

python.versions     27 35 36 37 38 39

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  27ab026df9a073e2373ead76db7561d2bb437e7a \
                    sha256  832aa3cde19744e49938b91fea06d69ecb9e649c93ba974535d08ad92164f700 \
                    size    164523

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
}
