# -*- 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 set _name hpack set _n [string index ${_name} 0] github.setup python-hyper hpack 3.0.0 v name py-${_name} categories-append net platforms darwin supported_archs noarch license MIT maintainers {petr @petrrr} openmaintainer description Pure-Python HPACK header compression long_description \ This module contains a pure-Python HTTP/2 header encoding (HPACK) \ logic for use in Python programs that implement HTTP/2. It also \ contains a compatibility layer that automatically enables the use \ of nghttp2 if it is available. homepage https://python-hyper.org/hpack/ # Need this as I switched from pypi to github for files required by tests dist_subdir ${name}/${version}_1 checksums rmd160 b9a96210a7713ad5dfbbabf78118cc2ba8d05a44 \ sha256 184bb68e6a4c421cef59c96e6ef788ea7dac86127cf2a0af51d096a5477417c4 \ size 5307313 python.versions 27 34 35 36 37 if {${name} ne ${subport}} { depends_build-append port:py${python.version}-setuptools depends_test-append port:py${python.version}-pytest \ port:py${python.version}-hypothesis test.env PYTHONPATH=${worksrcpath}/build/lib test.run yes test.cmd py.test-${python.branch} test.target test livecheck.type none } else { livecheck.type regex livecheck.url https://pypi.python.org/pypi/${_name}/json livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\"" }