diff options
author | Ivan Kozik <ivan@ludios.org> | 2018-12-13 08:08:05 +0000 |
---|---|---|
committer | Robert Schütz <rschuetz17@gmail.com> | 2018-12-13 09:08:05 +0100 |
commit | f1b814a879cda2550bdf9324ca88642dbc5c01d2 (patch) | |
tree | 38c411048754f159619647dac7f44dab5f402222 /pkgs/development/python-modules/lmdb | |
parent | 2232135cf9cfe41a94f969bd4d18a0615715adfe (diff) |
pythonPackages.lmdb: enable tests (#51931)
Diffstat (limited to 'pkgs/development/python-modules/lmdb')
-rw-r--r-- | pkgs/development/python-modules/lmdb/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/lmdb/default.nix b/pkgs/development/python-modules/lmdb/default.nix index a7767be6dc483..5835fe3196d44 100644 --- a/pkgs/development/python-modules/lmdb/default.nix +++ b/pkgs/development/python-modules/lmdb/default.nix @@ -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"; |