about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorIvan Kozik <ivan@ludios.org>2018-12-13 08:08:05 +0000
committerRobert Schütz <rschuetz17@gmail.com>2018-12-13 09:08:05 +0100
commitf1b814a879cda2550bdf9324ca88642dbc5c01d2 (patch)
tree38c411048754f159619647dac7f44dab5f402222 /pkgs
parent2232135cf9cfe41a94f969bd4d18a0615715adfe (diff)
downloadnixlib-f1b814a879cda2550bdf9324ca88642dbc5c01d2.tar
nixlib-f1b814a879cda2550bdf9324ca88642dbc5c01d2.tar.gz
nixlib-f1b814a879cda2550bdf9324ca88642dbc5c01d2.tar.bz2
nixlib-f1b814a879cda2550bdf9324ca88642dbc5c01d2.tar.lz
nixlib-f1b814a879cda2550bdf9324ca88642dbc5c01d2.tar.xz
nixlib-f1b814a879cda2550bdf9324ca88642dbc5c01d2.tar.zst
nixlib-f1b814a879cda2550bdf9324ca88642dbc5c01d2.zip
pythonPackages.lmdb: enable tests (#51931)
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/lmdb/default.nix10
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 a7767be6dc48..5835fe3196d4 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";