From a57a8fae393d54fea4319eff6248f2b8f07789db Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 24 Jan 2016 09:54:39 +0100 Subject: [PATCH] pythonPackages.tidylib: fix test runner, disable tests --- pkgs/top-level/python-packages.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c1eb0530b90..5e09ae6db40 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18612,6 +18612,17 @@ in modules // { md5 = "2a28267370c9409b592cdb786649cb25"; }; + # Judging from SyntaxError in tests + disabled = isPy3k; + + checkPhase = '' + ${python.interpreter} -m unittest discover + ''; + + # Bunch of tests fail + # https://github.com/countergram/pytidylib/issues/13 + doCheck = false; + patchPhase = '' sed -i 's#load_library(name)#load_library("${pkgs.html-tidy}/lib/libtidy.so")#' tidylib/__init__.py '';