# -*- 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.21.2
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  8a54de34bdf5e601d9ab6ba88d2eeeb147565d51 \
                    sha256  586d6b9475c9018a42f19f1e4688077b8158101cbf40673c63d2c1a096cc7665 \
                    size    1094494

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            
}
