summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2018-11-03 12:40:03 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2018-11-03 12:40:03 +0100
commitca7fa914c3bd96521af466d1ed48cc0ac9657cb4 (patch)
tree294188c08104b2d2641a6f2e26cfa70bc43e54f4 /pkgs/development/python-modules
parenta36f49b9d6317e56e58bba456c85b47a7bc382b5 (diff)
downloadnixlib-ca7fa914c3bd96521af466d1ed48cc0ac9657cb4.tar
nixlib-ca7fa914c3bd96521af466d1ed48cc0ac9657cb4.tar.gz
nixlib-ca7fa914c3bd96521af466d1ed48cc0ac9657cb4.tar.bz2
nixlib-ca7fa914c3bd96521af466d1ed48cc0ac9657cb4.tar.lz
nixlib-ca7fa914c3bd96521af466d1ed48cc0ac9657cb4.tar.xz
nixlib-ca7fa914c3bd96521af466d1ed48cc0ac9657cb4.tar.zst
nixlib-ca7fa914c3bd96521af466d1ed48cc0ac9657cb4.zip
python.pkgs.bsddb3: enable python3 and tests
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/bsddb3/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/bsddb3/default.nix b/pkgs/development/python-modules/bsddb3/default.nix
index 971aac70ad8e..700f5b3d0c52 100644
--- a/pkgs/development/python-modules/bsddb3/default.nix
+++ b/pkgs/development/python-modules/bsddb3/default.nix
@@ -3,12 +3,12 @@
 , fetchPypi
 , pkgs
 , isPy3k
+, python
 }:
 
 buildPythonPackage rec {
   pname = "bsddb3";
   version = "6.2.6";
-  disabled = isPy3k;
 
   src = fetchPypi {
     inherit pname version;
@@ -17,8 +17,9 @@ buildPythonPackage rec {
 
   buildInputs = [ pkgs.db ];
 
-  # Judging from SyntaxError in test
-  doCheck = false; # test suite breaks python3 compatibility
+  checkPhase = ''
+    ${python.interpreter} test.py
+  '';
 
   # Path to database need to be set.
   # Somehow the setup.py flag is not propagated.