# -*- 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             4.7.1
revision            0
categories-append   databases
license             Apache

python.versions     38 39 310 311 312

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  670dd1e1aefb998a09768ab45950855a43a38b8a \
                    sha256  811c41c6227b7548afcb53e1b996c25262d837b5e5f519e2ddc2c7e59d8728a5 \
                    size    1482941

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

    depends_lib-append  port:py${python.version}-dnspython

    post-destroot {
        xinstall -m 755 -d ${destroot}${python.prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} README.md \
            ${destroot}${python.prefix}/share/doc/${subport}
    }
}
