@@ -0,0 +1,35 @@
1+{ stdenv
2+, buildPythonPackage
3+, fetchPypi
4+, html5lib
5+, wcwidth
6+, nose
7+, python
8+}:
9+buildPythonPackage rec {
10+ name = "${pname}-${version}";
11+ pname = "ftfy";
12+ version = "4.4.3";
13+
14+ src = fetchPypi {
15+ inherit pname version;
16+ sha256 = "152xdb56rhs1q4r0ck1n557sbphw7zq18r75a7kkd159ckdnc01w";
17+ };
18+
19+ propagatedBuildInputs = [ html5lib wcwidth];
20+
21+ buildInputs = [
22+ nose
23+ ];
24+
25+ checkPhase = ''
26+ nosetests -v
27+ '';
28+
29+ meta = with stdenv.lib; {
30+ description = "Given Unicode text, make its representation consistent and possibly less broken.";
31+ homepage = https://github.com/LuminosoInsight/python-ftfy/tree/master/tests;
32+ license = licenses.mit;
33+ maintainers = with maintainers; [ sdll ];
34+ };
35+}