# -*- 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.4.4
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 34 35 36

checksums           rmd160  5f8dc881f7ee19a65f6a194185d76b10d8563781 \
                    sha256  fba4d4798dcac2965874f24afb6631b4326baa4bd02505744d34f690c354856a

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}