python.pkgs.ftfy: disable Python 2

This commit is contained in:
Frederik Rietdijk 2017-09-06 18:15:46 +02:00
parent a4129e7b9e
commit a2b8f39d63
1 changed files with 10 additions and 2 deletions

View File

@ -5,6 +5,7 @@
, wcwidth , wcwidth
, nose , nose
, python , python
, isPy3k
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "${pname}-${version}"; name = "${pname}-${version}";
@ -18,14 +19,21 @@ buildPythonPackage rec {
propagatedBuildInputs = [ html5lib wcwidth]; propagatedBuildInputs = [ html5lib wcwidth];
buildInputs = [ checkInputs = [
nose nose
]; ];
checkPhase = '' 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; { meta = with stdenv.lib; {
description = "Given Unicode text, make its representation consistent and possibly less broken."; description = "Given Unicode text, make its representation consistent and possibly less broken.";
homepage = https://github.com/LuminosoInsight/python-ftfy/tree/master/tests; homepage = https://github.com/LuminosoInsight/python-ftfy/tree/master/tests;