git.iko.soy/typeable/nixpkgs
on master help sign in
python.pkgs.ftfy: disable Python 2
commita2b8f39d636dfc3b4411aa4bc8dd42cb07d128b8 authorFrederik Rietdijk <fridh@fridh.nl> dateWed 6 Sep 2017, 18:15 (9 years ago) parenta4129e7
1 file changed+10−2
pkgs/development/python-modules/ftfy/default.nix+10−2
pkgs/development/python-modules/ftfy/default.nix+10−2
@@ -5,6 +5,7 @@
55, wcwidth
66, nose
77, python
8+, isPy3k
89}:
910buildPythonPackage rec {
1011 name = "${pname}-${version}";
@@ -18,14 +19,21 @@ buildPythonPackage rec {
1819
1920 propagatedBuildInputs = [ html5lib wcwidth];
2021
21− buildInputs = [
22+ checkInputs = [
2223 nose
2324 ];
2425
2526 checkPhase = ''
26− nosetests -v
27+ nosetests -v tests
2728 '';
2829
30+ # Several tests fail with
31+ # FileNotFoundError: [Errno 2] No such file or directory: 'ftfy'
32+ doCheck = false;
33+
34+ # "this version of ftfy is no longer written for Python 2"
35+ disabled = !isPy3k;
36+
2937 meta = with stdenv.lib; {
3038 description = "Given Unicode text, make its representation consistent and possibly less broken.";
3139 homepage = https://github.com/LuminosoInsight/python-ftfy/tree/master/tests;