# -*- 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-dataclasses
version             0.8
revision            0

platforms           darwin
supported_archs     noarch
license             Apache-2
maintainers         {reneeotten @reneeotten} openmaintainer

description         A backport of the dataclasses module for Python 3.6
long_description    ${description}

homepage            https://github.com/ericvsmith/dataclasses

checksums           rmd160  84c33b203979c37df503d9a6393fcd1d1a279daf \
                    sha256  8479067f342acf957dc82ec415d355ab5edb7e7646b90dc6e2fd1d96ad084c97 \
                    size    36581

# dataclasses are included in Python 3.7 and above, do not add any other versions here
python.versions     36

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

    test.run        yes
    test.dir        ${build.dir}/test
    test.cmd        ${python.bin} test_dataclasses.py
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type  none
}
