# -*- 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-leveldb
version             0.201
epoch               1
revision            0

categories-append   databases
maintainers         nomaintainer
license             BSD

description         Python bindings for leveldb database library
long_description    {*}${description}

homepage            https://code.google.com/p/py-leveldb/

checksums           rmd160  59a63c544f3825c566936ac794af41fb26280d9c \
                    sha256  1cffe776842917e09f073bd6ea5856c64136aebddbe51bd17ea29913472fecbf \
                    size    236507

python.versions     311

if {${name} ne ${subport}} {
    post-patch {
        reinplace "s|-hard-error-in-future||g" ${worksrcpath}/setup.py
    }

    test.run        yes
    python.test_framework
    test.cmd        ${python.bin} test/test.py
}
