# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        WoLpH portalocker 2.8.2 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
name                py-${github.project}
license             PSF-2.1.1
maintainers         nomaintainer
platforms           {darwin any}
supported_archs     noarch

description         Cross-platform locking library

long_description    Portalocker is a library to provide an easy API to file locking.

checksums           rmd160  d9bb4f62ade05527cd2e6621552889d4aba289ee \
                    sha256  6cadc1be8018dac770a0be6adf9f1938c3e83ad64f54e4303c90eef70c02517f \
                    size    32382

python.versions     39 310 311 312

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

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

    test.run        yes
}
