# -*- 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-immutables
version             0.9
categories-append   devel
platforms           darwin
supported_archs     noarch
license             Apache-2

python.versions     35 36 37

maintainers         {@jandemter demter.de:jan} openmaintainer

description         A high-performance immutable mapping type for Python
long_description    An immutable mapping type for Python.  The underlying \
                    datastructure is a Hash Array Mapped Trie (HAMT) used \
                    in Clojure, Scala, Haskell, and other functional \
                    languages. This implementation is used in CPython 3.7 \
                    in the contextvars module (see PEP 550 and PEP 567 for more details).

homepage            https://github.com/MagicStack/immutables
master_sites        pypi:i/immutables

distname            immutables-${version}

checksums           rmd160  40185d1e07091e051eb91caeddbe1f3cba3febfe \
                    sha256  d71d1c822498646143270580dd6f743bb31ab89ae0ded8b2307c356d3a00f1c0 \
                    size    37754

if {${name} ne ${subport}} {
    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
}
