# -*- 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-more-itertools
python.rootname     more_itertools
version             10.8.0
revision            0
categories-append   devel
license             MIT
supported_archs     noarch
platforms           {darwin any}

python.versions     27 310 311 312 313 314
python.pep517_backend flit

maintainers         {stromnov @stromnov} openmaintainer

description         More routines for operating on iterables, beyond itertools.
long_description    {*}${description}

homepage            https://github.com/more-itertools/more-itertools

checksums           rmd160  a9c69146b175a2dce3b28ed18b63bb2876fed321 \
                    sha256  f638ddf8a1a0d134181275fb5d58b086ead7c6a72429ad725c67503f13ba30bd \
                    size    137431

if {${name} ne ${subport}} {
    if {${python.version} eq 27} {
        version             5.0.0
        revision            0
        distname            more-itertools-${version}
        checksums           rmd160  d577e4f1ab2f842de4b462f27be160b89285f696 \
                            sha256  38a936c0a6d98a38bcc2d03fdaaedaba9f412879461dd2ceff8d37564d6522e4 \
                            size    67359

        depends_build-append \
                            port:py${python.version}-setuptools

        depends_lib-append  port:py${python.version}-six
    }

    if {${python.version} >= 36} {
        test.run            yes
        test.target         tests
    }

    livecheck.type      none
}
