# -*- 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-zlmdb
version             20.8.1
revision            1
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

description         Object relational zero copy in memory database layer for \
                    LMDB.
long_description    {*}${description}

homepage            https://github.com/crossbario/zlmdb

checksums           rmd160  e21331af67be04b87e9cce9930cf845fccf412d6 \
                    sha256  9fde9e94d272c344b8437355af94b1cb76e3707d8d6c77488f9df2e749c1353f \
                    size    129680

python.versions     39

patchfiles          patch-setup.py.diff

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

    depends_lib-append \
                    port:py${python.version}-cbor2 \
                    port:py${python.version}-click \
                    port:py${python.version}-lmdb \
                    port:py${python.version}-numpy \
                    port:py${python.version}-pynacl \
                    port:py${python.version}-txaio \
                    port:py${python.version}-yaml
}
