# -*- 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-wheel
version             0.47.0
revision            0
epoch               1

license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         A built package format for Python.
long_description    {*}${description}
homepage            https://github.com/pypa/wheel/

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  170c0e1c9a9459d5bb8e0dec50be4baff2181b01 \
                    sha256  cc72bd1009ba0cf63922e28f94d9d83b920aa2bb28f798a31d0691b02fa3c9b3 \
                    size    63854

python.versions     27 37 38 39 310 311 312 313 314

python.pep517_backend \
                    flit

if {${name} ne ${subport}} {
    if {${python.version} == 38} {
        version     0.45.1
        revision    0
        epoch       1

        checksums   rmd160  5d2d272438b4bfce39c5401a5070878992bc5e76 \
                    sha256  661e1abd9198507b1409a20c02106d9670b2576e916d58f520316666abca6729 \
                    size    107545
    } elseif {${python.version} == 37} {
        version     0.42.0
        revision    0
        epoch       1

        checksums   rmd160  25c120a08158cb9c9d642a6a900e49dab44b0c12 \
                    sha256  c45be39f7882c9d34243236f2d63cbd58039e360f85d0913425fbd7ceea617a8 \
                    size    98667
    } elseif {${python.version} == 27} {
        version     0.37.1
        revision    0

        checksums   rmd160  6c4df8aa7c6d59f8b97cf85cce9e362c81b0c523 \
                    sha256  e9a504e793efbca1b8e0e9cb979a249cf4a0a7b5b8c9e8b65a5e39d49529c1c4 \
                    size    66376

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