# -*- 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-fake-useragent
python.rootname     fake_useragent
version             2.2.0
revision            0
categories-append   devel
platforms           any
license             Apache-2
maintainers         nomaintainer
description         Up-to-date simple useragent faker with real world database
long_description    {*}${description}
homepage            https://github.com/fake-useragent/fake-useragent
checksums           rmd160  628bbef9e9138c43199dcdaa4c276c8d2d24a7c2 \
                    sha256  4e6ab6571e40cc086d788523cf9e018f618d07f9050f822ff409a4dfe17c16b2 \
                    size    158898
supported_archs     noarch

python.versions     310 311 312 313 314

# Depspecs in upstream are a mess, and it is unclear what is actually required,
# since everything is just dumped here indiscriminately:
# https://github.com/fake-useragent/fake-useragent/blob/b36facc44c51d9f8b2cfd5598d745b9521a71093/requirements.txt
# Assume that pytest* are only used for tests, and tomli is redundant.
# Unfortunately, there are plans to make ruff required, which will break the port.
# Keep an eye on that when updating. See:
# https://github.com/fake-useragent/fake-useragent/pull/425
# https://github.com/fake-useragent/fake-useragent/issues/513
if {${subport} ne ${name}} {
    depends_lib-append \
                    port:py${python.version}-attrs \
                    port:py${python.version}-black \
                    port:py${python.version}-build \
                    port:py${python.version}-cachetools \
                    port:py${python.version}-chardet \
                    port:py${python.version}-click \
                    port:py${python.version}-colorama \
                    port:py${python.version}-coverage \
                    port:py${python.version}-distlib \
                    port:py${python.version}-exceptiongroup \
                    port:py${python.version}-fastjsonschema \
                    port:py${python.version}-filelock \
                    port:py${python.version}-importlib-resources \
                    port:py${python.version}-iniconfig \
                    port:py${python.version}-isort \
                    port:py${python.version}-mypy_extensions \
                    port:py${python.version}-packaging \
                    port:py${python.version}-parsing \
                    port:py${python.version}-pathspec \
                    port:py${python.version}-platformdirs \
                    port:py${python.version}-pluggy \
                    port:py${python.version}-py \
                    port:py${python.version}-pyproject_api \
                    port:py${python.version}-pyproject_hooks \
                    port:py${python.version}-six \
                    port:py${python.version}-tox \
                    port:py${python.version}-typing_extensions \
                    port:py${python.version}-validate-pyproject \
                    port:py${python.version}-virtualenv \
                    port:py${python.version}-zipp
}
