# -*- 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-coverage
version             4.5.3
categories-append   devel
maintainers         {petr @petrrr} openmaintainer
license             Apache-2

description         Code coverage measurement for Python
long_description    Coverage measures code coverage, typically during test \
                    execution. It uses the code analysis tools and tracing \
                    hooks provided in the Python standard library to \
                    determine which lines are executable, and which have \
                    been executed.

platforms           darwin

homepage            https://github.com/nedbat/coveragepy
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  29ccb06fb2829810952a75b117dd122af94bb1cb \
                    sha256  9de60893fb447d1e797f6bf08fdf0dbcda0c1e34c1b06c92bd3a363c0ea8c609 \
                    size    384747

python.versions     27 34 35 36 37

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

    patchfiles      patch-setup.py.diff

    livecheck.type  none
}