# -*- 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.6
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  a2e92985b641469e2b86ea1bf5eb575acffd8069 \
                    sha256  bdf8e945241670608552e8b3c41556aaf532705e3c8f1ed197a102d017f0a54a \
                    size    1022813

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            
}
