# -*- 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-ldap3
version             2.4.1

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

maintainers         {gmail.com:yan12125 @yan12125} openmaintainer

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.

homepage            https://github.com/cannatag/ldap3

distname            ${python.rootname}-${version}
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}/

checksums           md5     46e5d357f3b5e049bfb421e1473ee44d \
                    rmd160  209e4cc4c6d3df0648212ed0c1e8d003536bf963 \
                    sha256  e8fe0d55a8cecb725748c831ffac2873df94c05b2d7eb867ea167c0500bbc6a8


python.versions     27 36

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

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

    # the tarball on PyPI is missing files for testing, skipping test...

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