# -*- 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

github.setup        reclosedev requests-cache 6717a336430eb7e6fe17e75c5517f3076ca85b42
version             0.5.2
revision            0
name                py-requests-cache

categories-append   devel
platforms           darwin
license             BSD
supported_archs     noarch
maintainers         nomaintainer

description         Transparent persistent cache for py-requests
long_description    ${description}

checksums           rmd160  511d993d81abeffca4d13414a036be94c5c9ce23 \
                    sha256  1ea8b866db2b16a9b058626c7e1bde0cf669e96abc436cdef352f60237e23ab9 \
                    size    29527

python.versions     27 35 36 37 38

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

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

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst CONTRIBUTORS.rst \
            LICENSE HISTORY.rst ${destroot}${docdir}
    }

    depends_test-append \
                    port:py${python.version}-mock \
                    port:py${python.version}-pytest

    test.run        yes
    test.cmd        py.test-${python.branch}
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type  none
}
