# -*- 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-requests-mock
version             1.12.1
revision            1

platforms           {darwin any}
supported_archs     noarch
license             Apache-2
maintainers         {petr @petrrr} openmaintainer

description         Mock out responses from the requests package
long_description    ${python.rootname} provides a building block to stub out the \
                    HTTP requests portions of your testing code.

homepage            https://requests-mock.readthedocs.io/

checksums           sha256  e9e12e333b525156e82a3c852f22016b9158220d2f47454de9cae8a77d371401 \
                    rmd160  252c9facdefca5b9de4f12e0c967ba5713d4ea1f \
                    size    60901

python.versions     27 310 311 312 313 314

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        version         1.9.3
        revision        0

        checksums       sha256  8d72abe54546c1fc9696fa1516672f1031d72a55a1d66c85184f972a24ba0eba \
                        rmd160  cbcbb150f07ab4d5e5c1eadee0bf88782d557ed5 \
                        size    67988

        depends_lib-append \
                        port:py${python.version}-six
    } else {
        depends_build-append \
                        port:py${python.version}-setuptools_scm
    }

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

    depends_lib-append  port:py${python.version}-requests
}
