From 3b2e3355db9726a9656761024d3b9c9645640263 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 24 Jan 2016 09:45:56 +0100 Subject: [PATCH] pythonPackages.traits: disable tests Broken test suite. --- pkgs/top-level/python-packages.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2674e22fa14..c1eb0530b90 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -20123,6 +20123,18 @@ in modules // { md5 = "3ad558eebaedc63c29c80183c0371d2f"; }; + # Use pytest because its easier to discover tests + buildInputs = with self; [ pytest ]; + checkPhase = '' + py.test $out/${python.sitePackages} + ''; + + # Test suite is broken for 3.x on latest release + # https://github.com/enthought/traits/issues/187 + # https://github.com/enthought/traits/pull/188 + # Furthermore, some tests fail due to being in a chroot + doCheck = false; + propagatedBuildInputs = with self; [ numpy ]; meta = {