# -*- 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
version             2.1.0
revision            0

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

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

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

checksums           rmd160  f81a16e22fc9ffe6bb21ced496a5a1664302c0ac \
                    sha256  c6acbec0923d0cb7e72c22af1926f3e7c97b8e8d69fc7498eabacaf7c975bd9c \
                    size    60538

python.versions     27 39 310 311 312 313
python.pep517_backend \
                    hatch

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

    depends_build-append \
                    port:py${python.version}-setuptools
    if {${python.version} != 27} {
        depends_build-append \
                    port:py${python.version}-hatch-vcs
    }

    livecheck.type  none
}
