From a2b8f39d636dfc3b4411aa4bc8dd42cb07d128b8 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 6 Sep 2017 18:15:46 +0200 Subject: [PATCH] python.pkgs.ftfy: disable Python 2 --- pkgs/development/python-modules/ftfy/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ftfy/default.nix b/pkgs/development/python-modules/ftfy/default.nix index e5335867702..f5d25626bcf 100644 --- a/pkgs/development/python-modules/ftfy/default.nix +++ b/pkgs/development/python-modules/ftfy/default.nix @@ -5,6 +5,7 @@ , wcwidth , nose , python +, isPy3k }: buildPythonPackage rec { name = "${pname}-${version}"; @@ -18,14 +19,21 @@ buildPythonPackage rec { propagatedBuildInputs = [ html5lib wcwidth]; - buildInputs = [ + checkInputs = [ nose ]; checkPhase = '' - nosetests -v + nosetests -v tests ''; + # Several tests fail with + # FileNotFoundError: [Errno 2] No such file or directory: 'ftfy' + doCheck = false; + + # "this version of ftfy is no longer written for Python 2" + disabled = !isPy3k; + meta = with stdenv.lib; { description = "Given Unicode text, make its representation consistent and possibly less broken."; homepage = https://github.com/LuminosoInsight/python-ftfy/tree/master/tests;