# -*- 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             13.2.1
categories-append   security

license             {MIT PSF}
maintainers         {gmail.com:ottenr.work @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.

platforms           darwin

homepage            https://github.com/jaraco/keyring
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            keyring-${version}

checksums           rmd160  09dd71fbfe911abd5f80f896c807d9fa6f420e20 \
                    sha256  6364bb8c233f28538df4928576f4e051229e0451651073ab20b315488da16a58 \
                    size    43140

python.versions     27 34 35 36

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

    depends_lib-append     port:py${python.version}-entrypoints

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

    livecheck.type      none
} else {
    livecheck.type      pypi
}