# -*- 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-axolotl
python.rootname     python-axolotl
version             0.1.42
revision            0
platforms           darwin
license             GPL-3
maintainers         nomaintainer

description         Python implementation of libaxolotl
long_description    ${description}

homepage            https://github.com/tgalal/python-axolotl
master_sites        pypi:p/python-axolotl
distname            ${python.rootname}-${version}

checksums           rmd160  22988db6b833ced9b7f62401ae50a3076caf5de5 \
                    sha256  ef78c2efabcd4c33741669334bdda04710a3ef0e00b653f00127acff6460a7f0 \
                    size    39472

python.versions     27 36 37

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

    depends_run-append      port:py${python.version}-cryptography \
                            port:py${python.version}-axolotl-curve25519 \
                            port:py${python.version}-protobuf3

    depends_test-append     port:py${python.version}-nose
    test.run        yes
    test.cmd        nosetests-${python.branch}
    test.target     axolotl.tests

    livecheck.type  none
}