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

categories-append   net
supported_archs     noarch
platforms           {darwin any}
license             Apache-2
maintainers         nomaintainer

description         Asynchronous Python HTTP for Humans.
long_description    {*}${description}

homepage            https://github.com/tardyp/txrequests

checksums           rmd160  1f22e5af917532e12ee0b394efedabc6b67f2ad3 \
                    sha256  b452a1cafa4d005678f6fa47922a330feb4907d5b4732d1841ca98e89f1362e1 \
                    size    5306

python.versions     310

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

    test.run        yes
    python.test_framework
    test.cmd        ${python.bin}
    test.target     test_txrequests.py

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