# -*- 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-tldextract
version             5.2.0
revision            0
categories-append   net
license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         tldextract accurately separates the gTLD or ccTLD (generic or \
                    country code top-level domain) from the registered domain and \
                    subdomains of a URL.
long_description    {*}${description}
homepage            https://github.com/john-kurkowski/tldextract
supported_archs     noarch
platforms           {darwin any}

python.versions     39 310 311 312 313

checksums           rmd160  5220589c55e491bd41f7baba37c8a8f5a7e58763 \
                    sha256  c3a8c4daf2c25a57f54d6ef6762aeac7eff5ac3da04cdb607130be757b8457ab \
                    size    126839

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools_scm

    depends_lib-append  \
                    port:py${python.version}-filelock \
                    port:py${python.version}-idna \
                    port:py${python.version}-requests \
                    port:py${python.version}-requests-file
}
