# -*- 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-filelock
version             3.0.4
maintainers         {@funasoul gmail.com:funasoul} openmaintainer
platforms           darwin
supported_archs     noarch

description         A platform independent file lock
long_description    This package contains a single module, which implements \
                    a platform independent file lock in Python, which \
                    provides a simple way of inter-process communication:
license             public-domain
homepage            http://pypi.python.org/pypi/filelock/

distname            filelock-${version}
master_sites        pypi:f/filelock/

checksums           rmd160  51423a7699221b2d24b0fbe4fa4fd117b546a2fe \
                    sha256  011327d4ed939693a5b28c0fdf2fd9bda1f68614c1d6d0643a89382ce9843a71 \
                    size    6496

python.versions     27 36 37

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools
    livecheck.type  none
} else {
    livecheck.type  regex
    livecheck.url   https://pypi.python.org/pypi/filelock/
    livecheck.regex filelock (\\d(\\.\\d+)*)
}