# -*- 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-distlib
version             0.4.3
revision            0
epoch               1

supported_archs     noarch
platforms           {darwin any}
license             PSF
maintainers         {@rdbisme gmail.com:rubendibattista} openmaintainer

description         Low-level components of distutils2/packaging, augmented \
                    with higher-level APIs for making packaging easier.
long_description    {*}${description}

homepage            https://github.com/pypa/distlib

checksums           rmd160  0316fcaaf372f0ae595723c2083751126dcabb4f \
                    sha256  f152097224a0ae24be5a0f6bae1b9359af82133bce63f98a95f86cae1aede9ed \
                    size    615141

# keep version for Python 2.7, this is a (indirect) dependency of py-virtualenv
# See: <https://trac.macports.org/wiki/Python#VersionPolicy>
python.versions     27 310 311 312 313 314

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        # version 0.3.5 supports all Python versions, but MacPorts does not have a PEP517
        # compatible build solution for anything below Python 3.6
        version     0.3.4
        use_zip     yes

        checksums   rmd160  9f96621550871f844cfe12d11fefda24ac142a6f \
                    sha256  e4b58818180336dc9c529bfb9a0b58728ffc09ad92027a3f30b7cd91e3458579 \
                    size    631981
    } else {
        test.run    yes
    }
}
