# -*- 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             19.0.2
revision            0
categories-append   security

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.

platforms           darwin
supported_archs     noarch

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

checksums           rmd160  5e0afce0c6001f7478c4139ed42296b9de98810c \
                    sha256  1b74595f7439e4581a11d4f9a12790ac34addce64ca389c86272ff465f5e0b90 \
                    size    48417

python.versions     27 34 35 36 37

if {${name} ne ${subport}} {
    if {${python.version} in "27 34"} {
        version     18.0.1
        revision    0
        distname    ${python.rootname}-${version}
        checksums   rmd160  0e07d12c4943d18499350057a9df781fb4fcbbaf \
                    sha256  67d6cc0132bd77922725fae9f18366bb314fd8f95ff4d323a4df41890a96a838 \
                    size    48559
    }

    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 0644 -W ${worksrcpath} CHANGES.rst LICENSE README.rst \
            ${destroot}${docdir}
    }

    livecheck.type  none
}