# -*- 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-cachetools
version             7.0.3
revision            0

platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         memoizing collections and decorators
long_description    This module provides various {*}${description}, including variants of the \
                    Python 3 Standard Library @lru_cache function decorator.

homepage            https://github.com/tkem/cachetools

checksums           rmd160  0eec6abc890e8e81774024127f3574f04b8a803a \
                    sha256  8c246313b95849964e54a909c03b327a87ab0428b068fac10da7b105ca275ef6 \
                    size    37187

python.versions     39 310 311 312 313 314

if {${name} ne ${subport}} {
    if {${python.version} == 39} {
        version     6.2.6
        revision    0
        checksums   rmd160  17c9e82f0ebbbc7223b57d50943ef9ed3905cedf \
                    sha256  16c33e1f276b9a9c0b49ab5782d901e3ad3de0dd6da9bf9bcd29ac5672f2f9e6 \
                    size    32363
    }

    test.run        yes

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE \
            CHANGELOG.rst ${destroot}${docdir}
    }
}
