# -*- 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-bcrypt
version             3.2.2
revision            0
epoch               1
categories-append   devel
license             Apache-2

python.versions     27 310 311 312 313 314

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  3546659be12b634314e21e4a6b0b4c580efbd314 \
                    sha256  433c410c2177057705da2a9f2cd01dd157493b2a7ac14c8593a16b3dab6b6bfb \
                    size    42455

if {${subport} ne ${name}} {
    if {${python.version} == 27} {
        version             3.1.7
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  af0842db4fab9714b313a29310be5a56e6e1356d \
                            sha256  0b0069c752ec14172c5f78208f1863d7ad6755a6fae6fe76ec2c80d13be41e42 \
                            size    42512
        python.pep517       no
        depends_build-append \
                            port:py${python.version}-setuptools
        depends_lib-append  port:py${python.version}-six
    }

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

    livecheck.type          none
}
