# -*- 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-pyexpect
version             1.0.21
revision            1
categories-append   devel
platforms           {darwin any}
license             ISC
supported_archs     noarch

python.versions     39

homepage            https://github.com/dwt/pyexpect

description         Minimal but very flexible implementation of the expect \
                    pattern

long_description    {*}${description}


maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  b54a33bc3f7bc38e7364d917e8ef0d5bb015e513 \
                    sha256  96e900d6af928a94c2a75b4935ddda44872c218121d0467c549ae19e7608a9a2 \
                    size    30398

if {${name} ne ${subport}} {

    post-destroot {
        # The package is installing tests directly into the site-packages root.
        # Clean this up.
        file delete -force ${destroot}${python.pkgd}/tests
    }

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

    livecheck.type      none
}
