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

python.versions     27 34 35 36 37

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
master_sites        pypi:8b/0b/a06cfcb69d0cb004fde8bc6f0fd192d96d565d1b8aa2829f0f20adb796e5 \
                    pypi:[string index ${python.rootname} 0]/${python.rootname}

distname            ${python.rootname}-${version}

checksums           rmd160  af44a046cf42ff74c5c66a99849c977f8c97ff03 \
                    sha256  f0b870f674851ecbfbbbd364d6b5cbdff9dcedbc7f3f5e18a6891057f21fe399 \
                    size    124220

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
    set pyver [join [split ${python.version} {}] {.}]
    test.run            yes
    test.cmd            py.test-${pyver}
    test.target
    test.env            PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type      none
} else {
    livecheck.type      pypi
}