pythonPackages.lmdb: enable tests (#51931)

This commit is contained in:
Ivan Kozik 2018-12-13 08:08:05 +00:00 committed by Robert Schütz
parent 2232135cf9
commit f1b814a879

View File

@ -1,7 +1,8 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, pytest
, cffi
}:
buildPythonPackage rec {
@ -13,8 +14,11 @@ buildPythonPackage rec {
sha256 = "1zh38gvkqw1jm5105if6rr7ccbgyxr7k2rm5ygb9ab3bq82pyaww";
};
# Some sort of mysterious failure with lmdb.tool
doCheck = !isPy3k;
checkInputs = [ pytest cffi ];
checkPhase = ''
export PYTHONPATH=.:$PYTHONPATH
py.test
'';
meta = with stdenv.lib; {
description = "Universal Python binding for the LMDB 'Lightning' Database";