# -*- 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-hatch-fancy-pypi-readme
version             25.1.0
revision            0

categories-append   devel
license             MIT
supported_archs     noarch
platforms           {darwin any}

python.versions     37 38 39 310 311 312 313 314
python.pep517_backend hatch

maintainers         nomaintainer

description         a Hatch metadata plugin for projects' PyPI landing page
long_description    {*}${description}

homepage            https://github.com/hynek/hatch-fancy-pypi-readme
distname            hatch_fancy_pypi_readme-${version}

checksums           rmd160  e176f6c748c775cc285deacde656d7681d02edbd \
                    sha256  9c58ed3dff90d51f43414ce37009ad1d5b0f08ffc9fc216998a06380f01c0045 \
                    size    29701

if {${name} ne ${subport}} {
    if {${python.version} < 311} {
        depends_lib-append  port:py${python.version}-tomli
    }
    if {${python.version} < 38} {
        depends_lib-append  port:py${python.version}-typing_extensions
    }

    test.run        yes
    test.env-append PYTHONPATH=${destroot}${python.pkgd}
    test.args       --ignore tests/test_end_to_end.py
}
