# -*- 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-maxminddb
version             2.6.1
revision            0
license             Apache-2

python.versions     310 312

maintainers         {@gstaniak gmail.com:gstaniak} openmaintainer

description         Reader for the MaxMind DB format

long_description    This is a Python module for reading MaxMind DB files. The module \
                    includes both a pure Python reader and an optional C extension.\
                    \
                    MaxMind DB is a binary file format that stores data indexed by \
                    IP address subnets (IPv4 or IPv6).

homepage            https://www.maxmind.com/en/home

checksums           rmd160  daaa4f50d879f7cd402754e7ebe605d7d0644e97 \
                    sha256  6c5d591f625e03b0a34df0c7ff81580676397b8335e13ece130c6e39e4a3afb9 \
                    size    181219

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

    depends_lib-append  port:libmaxminddb
}
