# -*- 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
# $Id: Portfile 92715 2012-05-04 17:00:22Z snc@macports.org $

PortSystem              1.0
PortGroup               python 1.0

name                    py-passlib
version                 1.6
python.versions         27 31 32
python.default_version  27
categories-append       www security
maintainers             snc openmaintainer
license                 bsd
supported_archs         noarch

description             password hashing library
long_description        ${name} is a ${description} for Python 2 & 3, \
                        which provies cross-platform implementations \
                        of over 20 password hashing algorithms, as \
                        well as a framework for managing existing \
                        passowrd hashes.

platforms               darwin

homepage                http://packages.python.org/passlib/
master_sites            googlecode:passlib
distname                passlib-${version}

if {$subport != $name} {
    depends_lib-append  port:py${python.version}-distribute

    checksums           rmd160  a1d617bdb813a8b5dd05b7bd55002a312164c22e \
                        sha256  9e546e00bc19f7f4bfa84ec2770ea4c226b577149a094c3455711fc7a74d7117

    livecheck.type          none
} else {
    livecheck.name          passlib
    livecheck.regex         passlib-(\\d+(\\.\\d+)+)${extract.suffix}
}
