# -*- 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-flufl.lock
version             9.0.0
revision            0

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
license             Apache-2
maintainers         nomaintainer

description         NFS-safe file locking with timeouts for POSIX and Windows.
long_description    {*}${description} The flufl.lock library provides \
                    an NFS-safe file-based locking algorithm \
                    influenced by the GNU/Linux open(2) manpage, under \
                    the description of the O_EXCL option.

homepage            https://flufllock.readthedocs.io/

distname            flufl_lock-${version}

checksums           rmd160  7802d29a8ac8597280797300c5728ee0abfe5c49 \
                    sha256  270a46e754af3937735cdd4f8a8f43a2dc4e5c40a24fdf972f5dc6db0862e8bb \
                    size    34151

python.versions     313
python.pep517_backend hatch

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-atpublic \
                    port:py${python.version}-psutil

    depends_test-append \
                    port:py${python.version}-sybil

    test.run        yes
    test.env-append PYTHONPATH=${destroot}${python.pkgd}
}
