From f0764dd6320a0f373df4ddafba042da1e483e759 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Tue, 12 May 2015 17:22:04 +0200 Subject: [PATCH] python-packages: SQLAlchemy: skip tests on Py3k They would fail anyway, blocking all dependents for the sake of a mere test dependency. --- pkgs/top-level/python-packages.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4f00973c87f4..1803625f6f4a 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 '';