diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4f00973c87f..1803625f6f4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11909,10 +11909,14 @@ let md5 = "470ca4da4a0081efc830f0d90dd91682"; }; - buildInputs = with self; [ nose mock ]; - + buildInputs = with self; [ nose mock ] + ++ stdenv.lib.optional doCheck pysqlite; propagatedBuildInputs = with self; [ modules.sqlite3 ]; + # Test-only dependency pysqlite doesn't build on Python 3. This isn't an + # acceptable reason to make all dependents unavailable on Python 3 as well + doCheck = !isPy3k; + checkPhase = '' ${python.executable} sqla_nose.py '';