# -*- 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-unixsocket
version             0.4.1
distname            requests_unixsocket-${version}
revision            0

categories-append   devel
license             Apache-2
supported_archs     noarch
platforms           {darwin any}

python.versions     27 310 311 312 313 314

maintainers         nomaintainer

description         HTTP via a UNIX domain socket

long_description    This module uses py-requests to talk HTTP \
                    via a UNIX domain socket.

homepage            https://github.com/msabramo/requests-unixsocket

checksums           rmd160  e9b1c71cebc9296f4fa471198298ac93f3b7dec1 \
                    sha256  b2596158c356ecee68d27ba469a52211230ac6fb0cde8b66afb19f0ed47a1995 \
                    size    23476

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        version     0.2.0
        distname    requests-unixsocket-${version}
        revision    0
        checksums   rmd160  734f57911c70bf75fb8c33378340154bc51a1251 \
                    sha256  9e5c1a20afc3cf786197ae59c79bcdb0e7565f218f27df5f891307ee8817c1ea \
                    size    13303

        patchfiles  patch-requirements.diff

        depends_build-append \
                            port:py${python.version}-pbr
        build.env-append    PBR_VERSION=${version}
        destroot.env-append PBR_VERSION=${version}
    }

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

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