# -*- 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-pyrsistent
version             0.15.2
revision            0
categories-append   devel
platforms           darwin
license             MIT

python.versions     27 34 35 36 37

maintainers         {stromnov @stromnov} openmaintainer

description         Pyrsistent is a number of persistent collections.
long_description    ${description}

homepage            http://github.com/tobgu/pyrsistent/
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}

distname            ${python.rootname}-${version}

checksums           rmd160  5977f8cb47e4eb4782f5ce5e09822ad82c598eb6 \
                    sha256  16692ee739d42cf5e39cef8d27649a8c1fdb7aa99887098f1460057c5eb75c3a \
                    size    106804

if {${name} ne ${subport}} {
    if {${python.version} eq 34} {
        version             0.14.11
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  9e665cfbb6fd3c996771669a9fcb51e7c86c7e88 \
                            sha256  3ca82748918eb65e2d89f222b702277099aca77e34843c5eb9d52451173970e2 \
                            size    104498
    }

    depends_build-append \
                        port:py${python.version}-setuptools
    depends_lib-append  port:py${python.version}-six

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

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

    livecheck.type      none
}