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

name                py-bcrypt
version             3.2.0
revision            0
categories-append   devel
platforms           darwin
license             Apache-2

python.versions     27 35 36 37 38 39

maintainers         {stromnov @stromnov} openmaintainer

description         Modern password hashing for your software and your servers
long_description    ${description}

homepage            https://github.com/pyca/bcrypt/

checksums           rmd160  9951fe8a02e31a4df63e6e225ef6d847e705fdc9 \
                    sha256  5b93c1726e50a93a033c36e5ca7fdcd29a5c7395af50a6892f5d9e7c6cfbfb29 \
                    size    42416

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

    if {${python.version} <= 35} {
        version             3.1.7
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  af0842db4fab9714b313a29310be5a56e6e1356d \
                            sha256  0b0069c752ec14172c5f78208f1863d7ad6755a6fae6fe76ec2c80d13be41e42 \
                            size    42512
        depends_lib-append  port:py${python.version}-six
    }

    livecheck.type      none
}
