# -*- 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-niquests
version             3.18.7
revision            0
categories-append   net
supported_archs     noarch
platforms           {darwin any}
homepage            https://niquests.readthedocs.io/en/latest/
license             Apache-2
maintainers         {i0ntempest @i0ntempest} openmaintainer

description         simple, yet elegant, HTTP library
long_description    ${name} is a ${description}. It is a drop-in replacement for Requests,\
                    which is under feature freeze.

checksums           rmd160  8f306df9d43c3eacc1fd5bb56344726416d92ea8 \
                    sha256  7587a20e5c0fba0f2474d06b1f95794310585ba3a90e509c9a41f817100011e4 \
                    size    1025148

python.versions     313 314
python.pep517_backend \
                    hatch

if {${name} ne ${subport}} {
    # deps for niquests[full]
    depends_lib-append \
                    port:py${python.version}-charset-normalizer \
                    port:py${python.version}-urllib3-future \
                    port:py${python.version}-wassima \
                    port:py${python.version}-orjson            
}
