# -*- 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.2.3
revision            0

platforms           darwin
license             GPL-3
maintainers         nomaintainer

description         Python implementation of libaxolotl
long_description    ${description}

homepage            https://github.com/tgalal/python-axolotl

checksums           rmd160  bd830ee43a670a2b5601d74a2d0097251136b9ac \
                    sha256  fe0e8147423f8dc4ec1077ea18ca5a54091366d22faa903a772ee6ea88b88daf \
                    size    38180

python.versions     27 36 37 38

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
}
