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

set real_name       ndg_httpsclient
name                py-${real_name}
version             0.5.1
worksrcdir          ${real_name}-${version}
distfiles           ${real_name}-${version}${extract.suffix}
categories-append   net
license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         This is a HTTPS client implementation for httplib and urllib2 based \
                    on PyOpenSSL.
long_description    ${description} PyOpenSSL provides a more fully featured SSL \
                    implementation over the default provided with Python and importantly \
                    enables full verification of the SSL peer.
platforms           darwin
homepage            https://pypi.python.org/pypi/ndg-httpsclient
master_sites        pypi:n/ndg-httpsclient

python.versions     27 36 37

checksums           rmd160  283187e9cb79e5c805b4f6947660256d6afa0630 \
                    sha256  d72faed0376ab039736c2ba12e30695e2788c4aa569c9c3e3d72131de2592210 \
                    size    26665

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-asn1 \
                        port:py${python.version}-openssl
}

livecheck.type      regex
livecheck.regex     ${real_name}-(\[0-9.\]+)${extract.suffix}