# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        cannatag ldap3 2.9 v
name                py-ldap3

categories-append   net www
platforms           darwin
supported_archs     noarch
license             LGPL-3+

maintainers         nomaintainer

description         A strictly RFC 4510 conforming LDAP V3 pure Python client library
long_description    \
    ldap3 is a strictly RFC 4510 conforming LDAP V3 pure Python client \
    library. The same codebase runs in Python 2, Python 3, PyPy and PyPy3.

checksums           rmd160  79e01fca419bee34e0befa8c6afa9a3ce7ad6101 \
                    sha256  5211bff2765303d3e23234497ccd836c7a3c6519db85127062de71ca38494adf \
                    size    970755

python.versions     37 38 39

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools

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

    # No tests as upstream tests are designed not for running outside Travis CI

    livecheck.type  none
} else {
    livecheck.type  pypi
}

foreach {old new} {27 37 36 37} {
    subport py${old}-${python.rootname} "
        replaced_by py${new}-${python.rootname}
        PortGroup obsolete 1.0
    "
}
