# -*- 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.1
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  3ee16ced1ee65d683b3b29d90f78cb0b136e7006 \
                    sha256  e31e579d2c5b6e2944177a0397150d312888ddf4e16e12f1016068f0c03b8341 \
                    size    36126

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}
    }
}
