# -*- 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 # $Id$ PortSystem 1.0 PortGroup python 1.0 set _name netlib set _n [string index ${_name} 0] name py-${_name} version 0.16 categories-append net platforms darwin supported_archs noarch license MIT maintainers petr mdeaudelin.net:macports openmaintainer description A collection of network utilities from mitmproxy project long_description \ Netlib is a collection of network utility classes, used by the pathod \ and mitmproxy projects. It differs from other projects in some \ fundamental respects, because both pathod and mitmproxy often need to \ violate standards. This means that protocols are implemented as small, \ well-contained and flexible functions, and are designed to allow \ misbehaviour when needed. homepage https://pypi.python.org/pypi/${_name}/${version} distname ${_name}-${version} master_sites pypi:${_n}/${_name}/ checksums md5 7c8622364947ae11c9dc39e1bf00a38d \ rmd160 77b0605f59143e6591a7d17e0ecaee88c4beb768 \ sha256 c70ed1915a5662c9ffce4dc97d143209e009cf0035a2f692031a6c47e87e6002 python.versions 27 34 35 python.default_version 35 if {${name} ne ${subport}} { # Attention: # The package `netlib` was merged into `mitmproxy` in version 0.17. # It is now conflicting with mitmproxy. # If mitmproxy is updated/installed netlib will be disactivated. # This port is still kept because mitmproxy is not yet Py3 compatible. if {${python.version} == 27} { conflicts py${python.version}-mitmproxy } depends_build-append port:py${python.version}-setuptools depends_lib-append port:py${python.version}-asn1 \ port:py${python.version}-certifi \ port:py${python.version}-cryptography \ port:py${python.version}-hpack \ port:py${python.version}-hyperframe \ port:py${python.version}-openssl \ port:py${python.version}-passlib if {${python.version} <= 33} { depends_lib-append port:py${python.version}-backports-ssl_match_hostname } livecheck.type none } else { livecheck.type regex livecheck.url https://pypi.python.org/pypi/${_name}/json livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\"" }