python.pkgs.bsddb3: enable python3 and tests

This commit is contained in:
Frederik Rietdijk 2018-11-03 12:40:03 +01:00
parent a36f49b9d6
commit ca7fa914c3

View File

@ -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.