# -*- 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.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  142c2c1e701f5aa394294dc95d814a6bace1c682 \
                    sha256  12256e7ecaccc498d9cccd9f4116b91abab812bace37966f3f439e92e26195b9 \
                    size    1019871

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
}
