# -*- 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.6.1
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  b8c499f7afc0ef651801202e2211e2007e6085a8 \
                    sha256  d0732d624fb46fd4e7bc4e5152f00214450953b9e772c182c1c22964def1a069 \
                    size    18088

python.versions     313 314
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
}
