@@ -4,7 +4,7 @@
44, fetchPypi
55, html5lib
66, wcwidth
7−, nose
7+, pytest
88}:
99
1010buildPythonPackage rec {
@@ -23,23 +23,23 @@ buildPythonPackage rec {
2323 sha256 = "1ci6xrj4g01a97nymxpv9nj820nlmgzc4ybaz9k46i6bnxzpax7s";
2424 };
2525
26− propagatedBuildInputs = [ html5lib wcwidth ];
26+ propagatedBuildInputs = [
27+ html5lib
28+ wcwidth
29+ ];
2730
2831 checkInputs = [
29− nose
32+ pytest
3033 ];
3134
35+ # We suffix PATH like this because the tests want the ftfy executable
3236 checkPhase = ''
33− nosetests -v tests
37+ PATH=$out/bin:$PATH pytest
3438 '';
3539
36− # Several tests fail with
37− # FileNotFoundError: [Errno 2] No such file or directory: 'ftfy'
38− doCheck = false;
39−
4040 meta = with stdenv.lib; {
41− description = "Given Unicode text, make its representation consistent and possibly less broken.";
42− homepage = https://github.com/LuminosoInsight/python-ftfy/tree/master/tests;
41+ description = "Given Unicode text, make its representation consistent and possibly less broken";
42+ homepage = https://github.com/LuminosoInsight/python-ftfy;
4343 license = licenses.mit;
4444 maintainers = with maintainers; [ sdll aborsu ];
4545 };