# -*- 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-pyhamcrest
python.rootname     PyHamcrest
version             2.0.2
revision            0

platforms           darwin
license             BSD
maintainers         {mcalhoun @MarcusCalhoun-Lopez} openmaintainer

description         Hamcrest framework for matcher objects
long_description    {*}${description}

homepage            https://github.com/hamcrest/PyHamcrest

checksums           rmd160  0a0710b31bbdc3c6984d789f6d4b3188af16ec51 \
                    sha256  412e00137858f04bde0729913874a48485665f2d36fe9ee449f26be864af9316 \
                    size    44329

python.versions     27 35 36 37 38 39 310

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        version     1.10.1
        checksums   rmd160  a6cbdb42ba7340e932a94ec120d6c77b1eec86f9 \
                    sha256  f7ae19ddfd71f11a421bcec9608d708c0fab816db98b51fdbc672a6d99a30874 \
                    size    43021
        distname    ${python.rootname}-${version}
    }

    depends_build-append \
                    port:py${python.version}-setuptools

    livecheck.type  none
}
