# -*- 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             16.0.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            ${python.rootname}-${version}

checksums           rmd160  d778cb37d7820b65755c143945b989080b6471f7 \
                    sha256  a86499736e2e6555618606c2fbc98147e803fa276f990ddba7011eb29a01b5ad \
                    size    43862

python.versions     27 34 35 36 37

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

    depends_lib-append  port:py${python.version}-setuptools \
                        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
}