# -*- 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-pyavm
python.rootname     PyAVM
version             0.9.4
revision            0

categories-append   science
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         Pure-Python AVM library
long_description    ${description}

homepage            https://github.com/astrofrog/pyavm

checksums           rmd160  dc99f430c73fcd8e8658e08a37e16ed5637ba7c1 \
                    sha256  f298b864e5bc101ecbb0e46252e95e18a180ac28ba6ec362e63c12a7e914e386 \
                    size    221928

python.versions     27 35 36

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

    depends_test-append \
                    port:py${python.version}-pytest

    test.run        yes
    test.cmd        py.test-${python.branch}
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type  none
}
