# -*- 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.4
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  88e42ff22c94633ed6268c5cd7216c57b3a62033 \
                    sha256  ca4175b4ac7f71223cc30ed7248c45d2b38c2439d8ee6e498ab67ed63cf3508d \
                    size    621304

# 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 315

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