# -*- 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-keyring
version             25.6.0
revision            0

categories-append   security
platforms           {darwin any}
supported_archs     noarch
license             {MIT PSF}
maintainers         {reneeotten @reneeotten} openmaintainer

description         Python interface to access the system keyring service
long_description    The Python keyring lib provides a easy way to access the system \
                    keyring service from python. It can be used in any application \
                    that needs safe password storage. The OSXKeychain keyring service \
                    supports the Keychain service in Mac OS X.

homepage            https://github.com/jaraco/keyring

checksums           rmd160  6fd11279b013455b41b61617158e2e2f107582ff \
                    sha256  0b39998aa941431eb3d9b0d4b2460bc773b9df6fed7621c2dfb291a7e0187a66 \
                    size    62750

python.versions     310 311 312 313 314

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

    depends_lib-append \
                    port:py${python.version}-jaraco.classes \
                    port:py${python.version}-jaraco.functools \
                    port:py${python.version}-jaraco.context

    if {${python.version} < 312} {
        depends_lib-append \
                    port:py${python.version}-importlib-metadata
    }

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} NEWS.rst LICENSE README.rst \
            ${destroot}${docdir}
    }
}
