@@ -7,18 +7,23 @@
77, python
88, isPy3k
99}:
10+
1011buildPythonPackage rec {
11− name = "${pname}-${version}";
1212 pname = "ftfy";
13− # latest is 5.1.1, buy spaCy requires 4.4.3
14− version = "5.3.0";
13+
14+ version = "4.4.3";
15+ # ftfy v5 only supports python3. Since at the moment the only
16+ # packages that use ftfy are spacy and textacy which both support
17+ # python 2 and 3, they have pinned ftfy to the v4 branch.
18+ # I propose to stick to v4 until another package requires v5.
19+ # At that point we can make a ftfy_v4 package.
1520
1621 src = fetchPypi {
1722 inherit pname version;
18− sha256 = "0ba702d5138f9b35df32b55920c9466208608108f1f3d5de1a68c17e3d68cb7f";
23+ sha256 = "152xdb56rhs1q4r0ck1n557sbphw7zq18r75a7kkd159ckdnc01w";
1924 };
2025
21− propagatedBuildInputs = [ html5lib wcwidth];
26+ propagatedBuildInputs = [ html5lib wcwidth ];
2227
2328 checkInputs = [
2429 nose
@@ -32,13 +37,10 @@ buildPythonPackage rec {
3237 # FileNotFoundError: [Errno 2] No such file or directory: 'ftfy'
3338 doCheck = false;
3439
35− # "this version of ftfy is no longer written for Python 2"
36− disabled = !isPy3k;
37−
3840 meta = with stdenv.lib; {
3941 description = "Given Unicode text, make its representation consistent and possibly less broken.";
4042 homepage = https://github.com/LuminosoInsight/python-ftfy/tree/master/tests;
4143 license = licenses.mit;
42− maintainers = with maintainers; [ sdll ];
43− };
44+ maintainers = with maintainers; [ sdll aborsu ];
45+ };
4446}