# -*- 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-id
version             1.5.0
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             Apache-2.0
maintainers         {reneeotten @reneeotten} openmaintainer

description         A tool for generating OIDC identities
long_description    {*}${description}

homepage            https://github.com/di/id

checksums           rmd160  3af77e01f32e7a747ccf65c67cf7c2b007938348 \
                    sha256  292cb8a49eacbbdbce97244f47a97b4c62540169c976552e497fd57df0734c1d \
                    size    15237

python.versions     313
python.pep517_backend flit

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

    test.run        yes
    test.env-append PYTHONPATH=${destroot}${python.pkgd}

    depends_test-append \
                    port:py${python.version}-pretend
}
