# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        openid python-openid 3.2
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                py-openid
revision            1

categories-append   net
license             Apache-2
maintainers         nomaintainer
platforms           {darwin any} freebsd
supported_archs     noarch

description         OpenID support for modern servers and consumers.
long_description    {*}${description}

checksums           rmd160  cdc5d0fdc17c74962190ffd616dca42f0f3f2ea6 \
                    sha256  ba74739cb9f6d8164f7f3b9fc9c376d34f1b90375cccc0afdb7a569500a3f867 \
                    size    286466

python.versions     310 311 312 313

if {${subport} ne ${name}} {
    depends_test-append \
                    port:py${python.version}-cryptography \
                    port:py${python.version}-six \
                    port:py${python.version}-lxml

    depends_test-append \
                    port:py${python.version}-mock \
                    port:py${python.version}-responses \
                    port:py${python.version}-testfixtures

    test.run        yes
}
