# -*- 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.3.1
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}

checksums           rmd160  a5dc2e378f4b0936b34fd2dc360a47aaf5f895aa \
                    sha256  a72756ca170b2510315076383ea2993478f7da6f897eef1f4a5400735d5057fb \
                    size    126105

python.versions     310 311 312 313 314

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
}
