1{ lib
2, buildPythonPackage
3, isPy3k
4, fetchPypi
5, wcwidth
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "ftfy";
11 version = "5.9";
12
13 disabled = !isPy3k;
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "8c4fb2863c0b82eae2ab3cf353d9ade268dfbde863d322f78d6a9fd5cefb31e9";
18 };
19
20 propagatedBuildInputs = [
21 wcwidth
22 ];
23
24 checkInputs = [
25 pytestCheckHook
26 ];
27
28 preCheck = ''
29 export PATH=$out/bin:$PATH
30 '';
31
32 meta = with lib; {
33 description = "Given Unicode text, make its representation consistent and possibly less broken";
34 homepage = "https://github.com/LuminosoInsight/python-ftfy";
35 license = licenses.mit;
36 maintainers = with maintainers; [ sdll aborsu ];
37 };
38}