# -*- 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-pymongo
version             3.11.3
revision            0
categories-append   databases
platforms           darwin
license             Apache

python.versions     27 35 36 37 38 39

maintainers         {stromnov @stromnov} openmaintainer

description         Python access to mongodb
long_description \
        The PyMongo distribution contains tools for interacting with \
        the Mongo database from Python.

homepage            https://www.mongodb.org/

checksums           rmd160  969e107d0d8816b5c1677d38a862b24b86b4d172 \
                    sha256  db5098587f58fbf8582d9bda2462762b367207246d3e19623782fb449c3c5fcc \
                    size    777381

if {${name} ne ${subport}} {
    conflicts               py${python.version}-bson

    depends_build-append    port:py${python.version}-setuptools
    post-destroot {
        xinstall -m 755 -d ${destroot}${python.prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} README.rst \
            ${destroot}${python.prefix}/share/doc/${subport}
    }

    livecheck.type      none
}
