# -*- 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.17.3
revision            0
categories-append   devel
platforms           darwin
license             MIT

python.versions     27 35 36 37 38 39

maintainers         {stromnov @stromnov} openmaintainer

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

homepage            http://github.com/tobgu/pyrsistent/

checksums           rmd160  e61fb596d16ed687f631286ea273e12648eaeb2f \
                    sha256  2e636185d9eb976a18a8a8e96efce62f2905fea90041958d8cc2a189756ebf3e \
                    size    106911

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

    if {${python.version} <= 35} {
        version             0.15.7
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  916e00904323216dce16999b23669ffd62981a61 \
                            sha256  cdc7b5e3ed77bed61270a47d35434a30617b9becdf2478af76ad2c6ade307280 \
                            size    107714
    }

    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
}
