# -*- 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-fasteners
version             0.16
revision            0
license             Apache-2
platforms           darwin
supported_archs     noarch
maintainers         {khindenburg @kurthindenburg} openmaintainer

description         A python package that provides useful locks
long_description    ${description}

homepage            https://pypi.python.org/pypi/${python.rootname}/
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  b82b88a005e9a628b40664f2c3c3df0a62a0cb61 \
                    sha256  c995d8c26b017c5d6a6de9ad29a0f9cdd57de61ae1113d28fac26622b06a0933 \
                    size    24824

python.versions     27 35 36 37 38 39

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

    if {${python.version} == 27} {
        depends_lib-append port:py${python.version}-monotonic \
    }
    depends_lib-append port:py${python.version}-six

    # Something wrong w/ testtools or fasteners tests
#    depends_test-append port:py${python.version}-testtools
#    test.run            yes
#    test.env            PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type  none
}
