# -*- 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
categories-append databases
description Python bindings for leveldb database library
long_description ${description}
homepage https://code.google.com/p/py-leveldb/
master_sites pypi:l/${python.rootname}/
checksums rmd160 bc2cb6928661fee9c5fb9030b87a10172103325e \
sha256 9c3378b3b4336cc63303e9fe5d054a337d50bafec80ac4628db19a598c0fcd38 \
distname ${python.rootname}-${version}
python.versions 27 34 35 36 37
if {${name} ne ${subport}} {
depends_build-append port:py${python.version}-setuptools
reinplace "s|-hard-error-in-future||g" ${worksrcpath}/setup.py
test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
test.cmd ${python.bin} test/test.py